Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
cacti
cacti-0.8.8a-cacti-log-path.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cacti-0.8.8a-cacti-log-path.patch of Package cacti
diff -Naur cacti-0.8.7i-PIA-3.1.orig/include/global_settings.php cacti-0.8.7i-PIA-3.1/include/global_settings.php --- cacti-0.8.7i-PIA-3.1.orig/include/global_settings.php 2011-12-12 03:09:54.000000000 +0100 +++ cacti-0.8.7i-PIA-3.1/include/global_settings.php 2011-12-13 23:40:54.000000000 +0100 @@ -96,9 +96,9 @@ ), "path_cactilog" => array( "friendly_name" => "Cacti Log File Path", - "description" => "The path to your Cacti log file (if blank, defaults to <path_cacti>/log/cacti.log)", + "description" => "The path to your Cacti log file (if blank, defaults to /var/log/cacti/cacti.log)", "method" => "filepath", - "default" => $config["base_path"] . "/log/cacti.log", + "default" => "/var/log/cacti/cacti.log", "max_length" => "255" ), "pollerpaths_header" => array( diff -Naur cacti-0.8.7i-PIA-3.1.orig/install/index.php cacti-0.8.7i-PIA-3.1/install/index.php --- cacti-0.8.7i-PIA-3.1.orig/install/index.php 2011-12-12 02:56:07.000000000 +0100 +++ cacti-0.8.7i-PIA-3.1/install/index.php 2011-12-13 23:42:51.000000000 +0100 @@ -266,7 +266,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"] = "/var/log/cacti/cacti.log"; } /* SNMP Version */ diff -Naur cacti-0.8.7i-PIA-3.1.orig/lib/functions.php cacti-0.8.7i-PIA-3.1/lib/functions.php --- cacti-0.8.7i-PIA-3.1.orig/lib/functions.php 2011-12-12 03:09:55.000000000 +0100 +++ cacti-0.8.7i-PIA-3.1/lib/functions.php 2011-12-13 23:36:05.000000000 +0100 @@ -493,7 +493,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 = "/var/log/cacti/cacti.log"; } /* echo the data to the log (append) */ diff -Naur cacti-0.8.7i-PIA-3.1.orig/utilities.php cacti-0.8.7i-PIA-3.1/utilities.php --- cacti-0.8.7i-PIA-3.1.orig/utilities.php 2011-12-12 03:09:55.000000000 +0100 +++ cacti-0.8.7i-PIA-3.1/utilities.php 2011-12-13 23:38:33.000000000 +0100 @@ -803,7 +803,7 @@ $logfile = read_config_option("path_cactilog"); if ($logfile == "") { - $logfile = "./log/rrd.log"; + $logfile = "/var/log/rrd.log"; } /* helps determine output color */ @@ -1051,7 +1051,7 @@ $logfile = read_config_option("path_cactilog"); if ($logfile == "") { - $logfile = "./log/cacti.log"; + $logfile = "/var/log/cacti/cacti.log"; } html_start_box("<strong>Clear Cacti Log File</strong>", "100%", $colors["header"], "1", "center", "");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor