diff -ur cacti-0.8.8h/include/config.php cacti-0.8.8h.new/include/config.php --- cacti-0.8.8h/include/config.php 2016-02-07 22:26:54.000000000 +0300 +++ cacti-0.8.8h.new/include/config.php 2016-05-10 14:13:15.732650670 +0300 @@ -38,6 +38,8 @@ */ //$url_path = "/cacti/"; +include '/etc/cacti/config.php'; + /* Default session name - Session name must contain alpha characters */ //$cacti_session_name = "Cacti"; diff -ur cacti-0.8.8h/include/global.php cacti-0.8.8h.new/include/global.php --- cacti-0.8.8h/include/global.php 2016-03-07 02:26:59.000000000 +0300 +++ cacti-0.8.8h.new/include/global.php 2016-05-10 14:13:15.732650670 +0300 @@ -116,7 +116,8 @@ $config["library_path"] = preg_replace("/(.*[\/])include/", "\\1lib", dirname(__FILE__)); } $config["include_path"] = dirname(__FILE__); -$config["rra_path"] = $config["base_path"] . '/rra'; +$config["rra_path"] = '/var/lib/cacti/rra'; +$config["log_path"] = '/var/log/cacti'; /* colors */ $colors["dark_outline"] = "454E53"; diff -ur cacti-0.8.8h/include/global_settings.php cacti-0.8.8h.new/include/global_settings.php --- cacti-0.8.8h/include/global_settings.php 2016-02-07 22:26:54.000000000 +0300 +++ cacti-0.8.8h.new/include/global_settings.php 2016-05-10 14:13:15.733650661 +0300 @@ -98,7 +98,7 @@ "friendly_name" => "Cacti Log File Path", "description" => "The path to your Cacti log file (if blank, defaults to /log/cacti.log)", "method" => "filepath", - "default" => $config["base_path"] . "/log/cacti.log", + "default" => $config["log_path"] . "/cacti.log", "max_length" => "255" ), "pollerpaths_header" => array( diff -ur cacti-0.8.8h/install/index.php cacti-0.8.8h.new/install/index.php --- cacti-0.8.8h/install/index.php 2016-03-07 02:26:59.000000000 +0300 +++ cacti-0.8.8h.new/install/index.php 2016-05-10 14:13:15.755650462 +0300 @@ -267,7 +267,7 @@ if (config_value_exists("path_cactilog")) { $input["path_cactilog"]["default"] = read_config_option("path_cactilog"); } else { - $input["path_cactilog"]["default"] = $config["base_path"] . "/log/cacti.log"; + $input["path_cactilog"]["default"] = $config["log_path"] . "/cacti.log"; } /* SNMP Version */ diff -ur cacti-0.8.8h/lib/functions.php cacti-0.8.8h.new/lib/functions.php --- cacti-0.8.8h/lib/functions.php 2016-05-08 17:46:52.000000000 +0300 +++ cacti-0.8.8h.new/lib/functions.php 2016-05-10 14:13:15.756650453 +0300 @@ -495,7 +495,7 @@ /* Log to Logfile */ if ((($logdestination == 1) || ($logdestination == 2)) && (read_config_option("log_verbosity") != POLLER_VERBOSITY_NONE)) { if ($logfile == "") { - $logfile = $config["base_path"] . "/log/cacti.log"; + $logfile = $config["log_path"] . "/cacti.log"; } /* echo the data to the log (append) */ Только в cacti-0.8.8h.new/lib: functions.php.orig diff -ur cacti-0.8.8h/poller.php cacti-0.8.8h.new/poller.php --- cacti-0.8.8h/poller.php 2016-02-07 22:26:54.000000000 +0300 +++ cacti-0.8.8h.new/poller.php 2016-05-10 14:13:15.756650453 +0300 @@ -1,3 +1,4 @@ +#!/usr/bin/php Clear Cacti Log File", "100%", "", "1", "center", "");