View Single Post
Old Jun 15th, 2007, 16:59   #1
SolidHost Crew
Join Date: Sep 2001
Posts: 850
Default How-to install SNMP

As of today our new monitoring service is available to existing customers. More details will be placed on our website shortly.

Unlike most other monitoring services, we can not only measure whether your server is up, but it can (for example) also measure your server load, CPU usage, memory usage, and so on. In order to do this, an SNMP daemon (Simple Network Management Protocol) would need to be installed on your VPS first. Here's a little tutorial on how you could do this yourself.

Instead of installing RPM's and their dependencies manually, it's easiest to install yum and then let yum install the applications:

cd /root
mkdir temp
cd temp
rpm -ivh *rpm
cd ..
rm -rf temp
Now, yum is installed and we can make it install SNMP:

yum install net-snmp net-snmp-utils net-snmp-devel -y
Ok, now SNMP is installed. We just need to configure a read-only community now so the monitoring system can read the system data:

echo rocommunity secret-name > /etc/snmp/snmpd.conf
In the above line, replace "secret-name" with a secret word. This will basically act as a password.

Finally, configure snmp to automatically start at boot time, and start the snmp daemon:

service snmpd start
chkconfig snmpd on
That's all! Now just make sure that port 161 (UDP) is left open in your firewall (if you have one installed), otherwise the monitoring service won't be able to connect.

Andre van Vliet
SolidHost Administrators

Solid as a Rock
SH-Andre is offline   Reply With Quote