1 --- cacti-0.8.7b/include/global.php 2008-10-05 04:38:29.740276226 +0300
2 +++ cacti-0.8.7g/include/global.php 2010-12-13 12:10:44.312310245 +0200
3 @@ -64,10 +64,7 @@ $url_path = '/cacti/';
4 /* allow upto 5000 items to be selected */
5 ini_set('max_input_vars', '5000');
7 -/* Include configuration, or use the defaults */
8 -if (file_exists(dirname(__FILE__) . '/config.php')) {
9 - include(dirname(__FILE__) . '/config.php');
11 +require '/etc/webapps/cacti/config.php';
13 if (isset($config['cacti_version'])) {
14 die('Invalid include/config.php file detected.');
15 @@ -139,7 +139,8 @@ if ($config['cacti_server_os'] == 'win32
16 $config['library_path'] = preg_replace("/(.*[\/])include/", "\\1lib", dirname(__FILE__));
18 $config['include_path'] = dirname(__FILE__);
19 -$config['rra_path'] = $config['base_path'] . '/rra';
20 +$config["rra_path"] = '/var/lib/cacti/rra';
21 +$config["path_cactilog"] = '/var/log/cacti/cacti.log';
23 /* for multiple pollers, we need to know this location */
24 if (!isset($scripts_path)) {
25 --- cacti-0.8.7g/include/config.php~ 2010-12-13 12:15:08.000000000 +0200
26 +++ cacti-0.8.7g/include/config.php 2010-12-13 12:16:09.275611204 +0200
28 $database_type = 'mysql';
29 $database_default = 'cacti';
30 $database_hostname = 'localhost';
31 -$database_username = 'cactiuser';
32 -$database_password = 'cactiuser';
33 +$database_username = 'mysql';
34 +$database_password = '';
35 $database_port = '3306';
36 $database_ssl = false;
38 --- cacti/poller.php~ 2017-08-28 05:48:36.000000000 +0200
39 +++ cacti/poller.php 2017-08-31 08:39:19.780902180 +0200
41 /* tick use required as of PHP 4.3.0 to accomodate signal handling */
44 -require(__DIR__ . '/include/cli_check.php');
45 +require('/usr/share/cacti/include/cli_check.php');
46 require_once($config['base_path'] . '/lib/poller.php');
47 require_once($config['base_path'] . '/lib/data_query.php');
48 require_once($config['base_path'] . '/lib/rrd.php');