Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2014 07:08:39 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r365066 - head/net-mgmt/cacti/files
Message-ID:  <201408160708.s7G78dt9072641@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sat Aug 16 07:08:39 2014
New Revision: 365066
URL: http://svnweb.freebsd.org/changeset/ports/365066
QAT: https://qat.redports.org/buildarchive/r365066/

Log:
  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>

Modified:
  head/net-mgmt/cacti/files/patch-include__global_settings.php
  head/net-mgmt/cacti/files/patch-install__index.php
  head/net-mgmt/cacti/files/pkg-message.in

Modified: head/net-mgmt/cacti/files/patch-include__global_settings.php
==============================================================================
--- head/net-mgmt/cacti/files/patch-include__global_settings.php	Sat Aug 16 03:47:14 2014	(r365065)
+++ head/net-mgmt/cacti/files/patch-include__global_settings.php	Sat Aug 16 07:08:39 2014	(r365066)
@@ -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(

Modified: head/net-mgmt/cacti/files/patch-install__index.php
==============================================================================
--- head/net-mgmt/cacti/files/patch-install__index.php	Sat Aug 16 03:47:14 2014	(r365065)
+++ head/net-mgmt/cacti/files/patch-install__index.php	Sat Aug 16 07:08:39 2014	(r365066)
@@ -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 */

Modified: head/net-mgmt/cacti/files/pkg-message.in
==============================================================================
--- head/net-mgmt/cacti/files/pkg-message.in	Sat Aug 16 03:47:14 2014	(r365065)
+++ head/net-mgmt/cacti/files/pkg-message.in	Sat Aug 16 07:08:39 2014	(r365066)
@@ -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.
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408160708.s7G78dt9072641>