pkgsrc/net/cacti/MESSAGE
tron 240e5b34d0 Improve packaging of this package:
1.) Handle installation of the script to determine the amount of free
    memory and swap space on the local machine automatically.
2.) Fix the NetBSD implementation of the above script.
3.) Create a wrapper shell script for invoking Cacti's poller.
4.) Simplify the installation instrunctions using the above enhancements.
5.) Don't included the log file in the package list. It doesn't belong
    there and "pkg_delete" will correctly complain that it has been
    modified.

ToDo:
- The log file and the "rrdtool" database still need to be moved to
  a directory under "${VARBASE}".
- "config.php" should really be a config file to allow using a
  non-default password for the MySQL database. But the file would have
  to be readable by both the user of the webserver and that cacti user.
2014-01-16 21:10:00 +00:00

41 lines
1.3 KiB
Text

===========================================================================
$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 database server.
- 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;
- 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
extension=mysql.so
extension=snmp.so
extension=sockets.so
- 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/cacti-poller
Please read the included README (${CACTIDIR}/docs/README) file,
for more information about configuring and starting cacti.
===========================================================================