2011-11-22 23:23:13 +01:00
|
|
|
===========================================================================
|
2014-01-16 22:10:00 +01:00
|
|
|
$NetBSD: MESSAGE,v 1.2 2014/01/16 21:10:00 tron Exp $
|
2011-11-22 23:23:13 +01:00
|
|
|
|
|
|
|
cacti is now installed.
|
|
|
|
|
|
|
|
To get cacti up and running asap, you have to complete these steps:
|
|
|
|
|
2014-01-16 22:10:00 +01:00
|
|
|
- Install & Configure MySQL database server.
|
2011-11-22 23:23:13 +01:00
|
|
|
|
2014-01-16 22:10:00 +01:00
|
|
|
- Add a cacti database and cactiuser user to MySQL and create the cacti
|
|
|
|
database layout (${CACTIDIR}/cacti.sql) to MySQL:
|
2011-11-22 23:23:13 +01:00
|
|
|
|
|
|
|
mysql> CREATE DATABASE cacti;
|
|
|
|
mysql> GRANT ALL PRIVILEGES ON cacti.* TO 'cactiuser'@'localhost'
|
|
|
|
-> IDENTIFIED BY 'cactiuser';
|
2014-01-16 22:10:00 +01:00
|
|
|
mysql> FLUSH PRIVILEGES;
|
|
|
|
mysql> USE cacti;
|
|
|
|
mysql> SOURCE ${CACTIDIR}/cacti.sql;
|
2011-11-22 23:23:13 +01:00
|
|
|
|
2014-01-16 22:10:00 +01:00
|
|
|
- Install & Configure an Apache webserver.
|
2011-11-22 23:23:13 +01:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2014-01-16 22:10:00 +01:00
|
|
|
- Append this to Apache webserver's "httpd.conf" and restart the server.
|
2011-11-22 23:23:13 +01:00
|
|
|
|
|
|
|
Include etc/httpd/httpd-cacti.conf
|
|
|
|
|
|
|
|
- Add the following lines to ${CACTI_USER}'s crontab
|
|
|
|
|
2014-01-16 22:10:00 +01:00
|
|
|
# Invoke poller.php to collect SNMP statistics.
|
|
|
|
*/5 * * * * ${PREFIX}/bin/cacti-poller
|
2011-11-22 23:23:13 +01:00
|
|
|
|
|
|
|
Please read the included README (${CACTIDIR}/docs/README) file,
|
|
|
|
for more information about configuring and starting cacti.
|
|
|
|
|
|
|
|
===========================================================================
|