Configuring CensorNet for SNMP monitoring

Published in CensorNet Professional on March 05, 2010 by Administrator

Todays blog has been inspired and created by Tom Richardson from CC Communications Ltd, one of CensorNet's Gold partners. Although CensorNet has the ability to issue alerts to administrators if resource thresholds are triggered (e.g. low disk space) some power users might prefer to use their existing SNMP management tool to monitor, report and alert about the status of the CensorNet server. The following instructions, courtesy of Tom, will walk you through the steps to install the SNMP tools on the CensorNet server which will provide the OID's you need to manage CensorNet via your third party monitoring tool. 1: Log in as root, then install the SNMP daemon and the SNMP toolkit:

apt-get update apt-get install snmp snmpd
2: Edit the snmpd defaults file to allow access from your network:
nano /etc/default/snmpd
Find the following line:
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
and change it to:
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 0.0.0.0'
Replace 0.0.0.0 with the IP address of your SNMP monitoring server. (0.0.0.0 allows public access!) Hold CTRL + X then CTRL + S to save the file. 3: Delete the existing snmpd.conf file
rm /etc/snmp/snmpd.conf
4: Create a new snmpd.conf file
nano /etc/snmp/snmpd.conf
Paste in the following:
rocommunity public proc squid proc CNv4 proc postgres disk /
Hold CTRL + X then CTRL + S to save the file. 5: Restart the snmp daemon
/etc/init.d/snmpd restart
6: You should now be able to monitor the server using the following OID's.
15 Minute Load Average: 1.3.6.1.4.1.2021.10.1.3.3 Check CNv4 Service is alive: 1.3.6.1.4.1.2021.2.1.100.2 Check Squid Service is alive: 1.3.6.1.4.1.2021.2.1.100.1 Check PostgreSQL is alive: 1.3.6.1.4.1.2021.2.1.100.3 Check free disk space on first partition (in %): 1.3.6.1.4.1.2021.9.1.9.1 Check free memory (in kB): 1.3.6.1.4.1.2021.4.11.0 Check System Uptime: 1.3.6.1.2.1.1.3.0



Last modified on Thu, June 30, 2011 « Back