Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
cacti
cacti-log-path.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cacti-log-path.patch of Package cacti
diff -Naur cacti-0.8.8c.org/include/global_settings.php cacti-0.8.8c/include/global_settings.php --- cacti-0.8.8c.org/include/global_settings.php 2014-11-23 15:18:57.000000000 -0500 +++ cacti-0.8.8c/include/global_settings.php 2014-12-08 06:19:56.370675820 -0500 @@ -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.8c.org/install/index.php cacti-0.8.8c/install/index.php --- cacti-0.8.8c.org/install/index.php 2014-11-23 15:18:57.000000000 -0500 +++ cacti-0.8.8c/install/index.php 2014-12-08 06:20:43.386677933 -0500 @@ -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"] = "/var/log/cacti/cacti.log"; } /* SNMP Version */ diff -Naur cacti-0.8.8c.org/lib/functions.php cacti-0.8.8c/lib/functions.php --- cacti-0.8.8c.org/lib/functions.php 2014-11-23 15:18:57.000000000 -0500 +++ cacti-0.8.8c/lib/functions.php 2014-12-08 06:21:00.523678445 -0500 @@ -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 = "/var/log/cacti/cacti.log"; } /* echo the data to the log (append) */ diff -Naur cacti-0.8.8c.org/utilities.php cacti-0.8.8c/utilities.php --- cacti-0.8.8c.org/utilities.php 2014-11-23 15:18:57.000000000 -0500 +++ cacti-0.8.8c/utilities.php 2014-12-08 06:21:16.189679334 -0500 @@ -1024,7 +1024,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%", "", "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