Go Back   SolidHost Forums Sales Knowledgebase

Reply
 
Thread Tools Display Modes
Old Jun 15th, 2007, 17:59   #1
SH-Andre
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:

Code:
cd /root
mkdir temp
cd temp
wget www.solidhost.com/cpinstall/centos-yumconf.rpm www.solidhost.com/cpinstall/libxml2-python.rpm www.solidhost.com/cpinstall/python-elementtree.rpm www.solidhost.com/cpinstall/sqlite.rpm www.solidhost.com/cpinstall/python-sqlite.rpm www.solidhost.com/cpinstall/python-urlgrabber.rpm www.solidhost.com/cpinstall/rpm-python.rpm www.solidhost.com/cpinstall/yum.rpm
rpm -ivh *rpm
cd ..
rm -rf temp
Now, yum is installed and we can make it install SNMP:

Code:
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:

Code:
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:

Code:
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
Old Feb 27th, 2008, 13:15   #2
SH-Andre
SolidHost Crew
 
Join Date: Sep 2001
Posts: 850
Default

Just a little update:

I came to find out today that the yum installer for CentOS 5 somehow installs a relatively old version of SNMPd which doesn't work well. If you run into this problem, you'll have to remove the SNMPd that was installed by yum and simply install the latest SNMPd RPM manually. Currently that would be:

Code:
wget ftp://ftp.nluug.nl/ftp/pub/os/Linux/distr/CentOS/5/os/i386/CentOS/net-snmp-5.3.1-19.el5.i386.rpm
rpm -ivh net-snmp-5.3.1-19.el5.i386.rpm
Of course you would first have to install the necessary dependencies, but you could simply let YUM do that for you.

If you need any help on getting any of this done, you may always feel free to open a support ticket.

-----------------
Andre van Vliet
SolidHost Administrators

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 20:37.