blob: 2d7f8d4d9c4ef341ed3307eccbeba28c250456d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2011/11/22 22:23:13 tez Exp $
cacti is now installed.
To get cacti up and running asap, you have to complete these steps:
- Install & Configure mysql-server
- Add a cacti database and cactiuser user to mysql
mysql> CREATE DATABASE cacti;
mysql> GRANT ALL PRIVILEGES ON cacti.* TO 'cactiuser'@'localhost'
-> IDENTIFIED BY 'cactiuser';
- 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
- 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's httpd.conf and restart apache
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
Please read the included README (${CACTIDIR}/docs/README) file,
for more information about configuring and starting cacti.
===========================================================================
|