This shows you the differences between two versions of the page.
| — |
snmpd_cacti [2009/03/02 14:06] (current) danux created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < Back to [[General Setup]] | ||
| + | ====== SNMPD + Cacti ====== | ||
| + | |||
| + | Used to monitor servers remotely, and provide legacy information through RRD | ||
| + | |||
| + | ===== SNMPD Config ===== | ||
| + | |||
| + | First, bind the server to an IP address | ||
| + | |||
| + | vi /etc/default/snmpd | ||
| + | |||
| + | Check the line | ||
| + | |||
| + | # snmpd options (use syslog, close stdin/out/err). | ||
| + | SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1' | ||
| + | |||
| + | and change to read | ||
| + | |||
| + | # snmpd options (use syslog, close stdin/out/err). | ||
| + | SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid <YOUR-IP-ADDRESS>' | ||
| + | |||
| + | Open the Firewall port for UDP | ||
| + | |||
| + | ufw allow 161/udp | ||
| + | |||
| + | Edit the config to allow the monitoring server to access the stats | ||
| + | |||
| + | vi /etc/snmp/snmpd.conf | ||
| + | |||
| + | find the lines with "com2sec" and set the uncommented (#) line to read | ||
| + | |||
| + | # sec.name source community | ||
| + | com2sec readonly <MONITORING-SERVERS-IP> <PRIVATE-COMMUNITY-NAME> | ||
| + | |||
| + | Finally, restart SNMPD | ||
| + | |||
| + | /etc/init.d/snmpd restart | ||