I setup Cacti to easily monitor my Linux PC and my PowerBook via SNMP.
Here are a few notes about the process :
- install Cacti : yum install cacti.
- install the dependencies : net-snmp-utils. Where is cactid ??
- create the database, create the mysql user : cactiuser for example (do not confuse with the cacti Linux user !), and initialise the database
/usr/share/doc/cacti-0.8.6.i/cacti.sql - Configure the
/etc/cacti/db.phpaccordingly. - Enable the polling in cron :
/etc/cron.d/cacti - Eventually authorize more IP in
/etc/httpd/conf.d/cacti.conf - Open
http://localhost/cacti/in a browser and add devices, graphs …
Compared to some other sources, as of Fedora core 6 (FC6), I didn’t have to change user right on directories. I don’t know about SELinux, I should test.
On the PowerBook Mac OS X : set up net-snmp (General SNMP Cacti’s howto) :
sudo vi /usr/share/snmp/snmpd.conf. Here is the simplest configuration I could do, still providing SNMPv3 security.
createUser cacti MD5 password DES
rouser cacti
includeAllDisks 5%
syslocation On my desk
syscontact toto.tata@gmail.com- Configure the SNMPv3 user/password in Cacti too (Menu : “Settings”) !
- Stop snmpd :
sudo killall snmpd - Restart snmpd :
sudo snmpd -I -icmp. See : Net-SNMP README OSX. - You can have a look at the log file :
/var/log/snmpd.log. I still have some errors, but it works :
nlist err: neither boottime nor _boottime found.
nlist err: neither cnt nor _cnt found.
kvm_read(*, 0, 0x249eec, 4) = 0: kvm_read: Bad address
auto_nlist failed on boottime at location 0
Posted by Bruno Vernay
Posted by Bruno Vernay