Monitoring of servers is very important in any IT environment. It's always best to know when a device is down before people start coming up to you. It allows you to be proactive, where you need to be. I also allows you to identify issues, like low disk space, before it because a problem later.
As many of you know there is a simple protocol all network devices use for system monitoring. It's called SNMP. It works on Windows, Linux, Cisco, Mac, you name it! This post will show you how to set it up simply in 5 easy steps in Ubuntu Linux.
- Install SNMP
#sudo apt-get install snmpd - Backup the default snmpd.conf file
#sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak - Create a blank /etc/snmp/snmpd.conf file with the following information (Customize for your environment)
rocommunity public
syslocation "Linux server, Colo"
syscontact info@bauer-power.net - Modify /etc/default/snmpd
Change from:
# 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'
To:
# 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'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf' - Restart the SNMP daemon.
#sudo /etc/init.d/snmpd restart
That's it! Now you can do an SNMP Walk from your monitoring server, and you should start picking up information.
[Via IT Slave]