Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
cacti
> cacti-0.8.7c-cacti-log-path.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File cacti-0.8.7c-cacti-log-path.patch of Package cacti (Revision 17)
Currently displaying revision
17
,
show latest
--- include/global_settings.php +++ include/global_settings.php @@ -94,9 +94,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.log)", "method" => "filepath", - "default" => $config["base_path"] . "/log/cacti.log", + "default" => "/var/log/cacti.log", "max_length" => "255" ), "pollerpaths_header" => array( --- install/index.php +++ install/index.php @@ -244,7 +244,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.log"; } /* SNMP Version */ --- lib/functions.php +++ lib/functions.php @@ -365,7 +365,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.log"; } /* echo the data to the log (append) */ --- script_server.pl +++ script_server.pl @@ -1,4 +1,4 @@ -chdir("./scripts"); +chdir("/usr/share/cacti/scripts"); $loaded = 0; while ($file = <*.pl>) { next if $file eq $0; --- utilities.php +++ utilities.php @@ -681,7 +681,7 @@ $logfile = read_config_option("path_cactilog"); if ($logfile == "") { - $logfile = "./log/rrd.log"; + $logfile = "/var/log/rrd.log"; } /* helps determine output color */ @@ -919,7 +919,7 @@ $logfile = read_config_option("path_cactilog"); if ($logfile == "") { - $logfile = "./log/cacti.log"; + $logfile = "/var/log/cacti.log"; } html_start_box("<strong>Clear Cacti Log File</strong>", "100%", $colors["header"], "1", "center", "");