1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

net-mgmt/cacti: update pkg-message

- /var/log/cacti/cacti.log -> /var/log/cacti/log
- hint how to update database after hier(7) adaptions
- Submitter is now maintainer

PR:		192618
Submitted by:	Dennis Glatting <freebsd@pki2.com>
This commit is contained in:
Kurt Jaeger 2014-08-16 07:08:39 +00:00
parent 7d5c5956ac
commit ab33f8bccd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365066
3 changed files with 14 additions and 3 deletions

View File

@ -5,10 +5,10 @@
"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)",
+ "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/cacti.log",
+ "default" => "/var/log/cacti/log",
"max_length" => "255"
),
"pollerpaths_header" => array(

View File

@ -5,7 +5,7 @@
$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";
+ $input["path_cactilog"]["default"] = "/var/log/cacti/log";
}
/* SNMP Version */

View File

@ -67,6 +67,17 @@ NOTEs as of 10Aug2014:
manage them using newsyslog.
b) Cacti RRD files are now found under /var/db/cacti/rra.
If you have an existing Cacti installation these paths are also
found in Cacti's SQL database and MUST be updated. These two SQL
commands should do the trick:
UPDATE settings SET value='/var/log/cacti/log' \
WHERE name='path_cactilog';
UPDATE poller_item SET rrd_path=\
REPLACE(rrd_path,'/usr/local/share/cacti/rra','/var/db/cacti/rra') \
WHERE rrd_path REGEXP '^/usr/local/share/cacti/rra';
2) The PERL paths in the Cacti PERL scripts have been updated to
/usr/local/bin.