jablonka.czprosek.czf

weathermap

Subversion Repositories:
[/] [weathermap-cacti-rebuild.php] - Blame information for rev 110

 

Line No. Rev Author Line
185simandl<?php
2 
3#
4# Change the uncommented line to point to your Cacti installation
5#
6# $cacti_base = "C:/Program Files/xampp/htdocs/cacti/";
7$cacti_base = "/var/www/html/cacti/";
8$cacti_base = "/Applications/XAMPP/htdocs/cacti/";
9$cacti_base = "/XAMPP/htdocs/cacti-0.8.7e/";
10$cacti_base = "../../";
11 
12// check if the goalposts have moved
13if( is_dir($cacti_base) && file_exists($cacti_base."/include/global.php") )
14{
15 // include the cacti-config, so we know about the database
16 require_once($cacti_base."/include/global.php");
17}
18elseif( is_dir($cacti_base) && file_exists($cacti_base."/include/config.php") )
19{
20 // include the cacti-config, so we know about the database
21 require_once($cacti_base."/include/config.php");
22}
23else
24{
25 print "Couldn't find a usable Cacti config";
26}
27 
28require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."setup.php");
29require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR."poller-common.php");
30 
31weathermap_setup_table();
32 
33weathermap_run_maps(dirname(__FILE__) );
34 
35// vim:ts=4:sw=4:
36?>

Powered by WebSVN 2.2.1