diff options
Diffstat (limited to 'net/cacti/MESSAGE')
-rw-r--r-- | net/cacti/MESSAGE | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/net/cacti/MESSAGE b/net/cacti/MESSAGE index 2d7f8d4d9c4..d3cacadf8a7 100644 --- a/net/cacti/MESSAGE +++ b/net/cacti/MESSAGE @@ -1,29 +1,23 @@ =========================================================================== -$NetBSD: MESSAGE,v 1.1.1.1 2011/11/22 22:23:13 tez Exp $ +$NetBSD: MESSAGE,v 1.2 2014/01/16 21:10:00 tron Exp $ cacti is now installed. To get cacti up and running asap, you have to complete these steps: -- Install & Configure mysql-server +- Install & Configure MySQL database server. -- Add a cacti database and cactiuser user to mysql +- Add a cacti database and cactiuser user to MySQL and create the cacti + database layout (${CACTIDIR}/cacti.sql) to MySQL: mysql> CREATE DATABASE cacti; mysql> GRANT ALL PRIVILEGES ON cacti.* TO 'cactiuser'@'localhost' -> IDENTIFIED BY 'cactiuser'; + mysql> FLUSH PRIVILEGES; + mysql> USE cacti; + mysql> SOURCE ${CACTIDIR}/cacti.sql; -- Add the cacti database layout (${CACTIDIR}/cacti.sql) to mysql - - shell> mysql [-p] cacti < ${CACTIDIR}/cacti.sql - -- Add a symlink from ${CACTIDIR}/scripts/local_memory.pl to the appropriate - *_memory.pl script (or create one if none for your OS exists) - - shell> ln -s ${CACTIDIR}/scripts/netbsd_memory.pl \ - ${CACTIDIR}/scripts/local_memory.pl - -- Install & Configure an apache webserver +- Install & Configure an Apache webserver. - If you have not already done so, add these lines to enable php extensions required by cacti in ${PKG_SYSCONFBASE}/etc/php.ini @@ -32,14 +26,14 @@ To get cacti up and running asap, you have to complete these steps: extension=snmp.so extension=sockets.so -- Append this to apache's httpd.conf and restart apache +- Append this to Apache webserver's "httpd.conf" and restart the server. Include etc/httpd/httpd-cacti.conf - Add the following lines to ${CACTI_USER}'s crontab -# Invoke poller.php to collect snmp-statistics -*/5 * * * * ${PREFIX}/bin/php ${CACTIDIR}/poller.php > ${CACTI_LOGDIR}/poller.log 2>&1 +# Invoke poller.php to collect SNMP statistics. +*/5 * * * * ${PREFIX}/bin/cacti-poller Please read the included README (${CACTIDIR}/docs/README) file, for more information about configuring and starting cacti. |