How to Configure SNMP on CPanel
Simple Network Management Protocol (SNMP) is a method used for managing networking nodes such as servers, workstations and routers, all from a central host. The SNMP manager controls the SNMP agents by using network management software. CPanel is a control panel that can be installed on a web server to help you manage your domain through a web browser. By installing a SNMP manager, MRTG in this case, you can access your traffic load and further network information through your CPanel administration. This is an advanced procedure and will require some knowledge of Linux administration.
Instructions
-
-
1
Start your Linux server and login with your root username and password.
-
2
Uninstall older versions of MRTG:
rpm -e mrtg
-
-
3
Download the latest version of MRTG:
wget http://www.dedicated-resources.com/files/mrtg-2.9.17-1cpanel.i386.rpm
-
4
Install MRTG:
rpm -Uvh mrtg-2.9.17-1cpanel.i386.rpm
-
5
Move libpng:
cd /usr/lib
mv libpng.so.2 libpng.so.2.OLD
-
6
Create a symlink:
ln -s libpng.so.3 libpng.so.2
-
7
Specify the language you wish to use:
pico /etc/sysconfig/i18n
Select "en_US"
-
8
Restart the MRTG software:
service mrtg restart
-
9
Open the MRTG conf file:
pico /usr/local/apache/conf/httpd.conf
-
10
Search (CTRL+W) for the following code:
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
After the last line of code type the following:
order deny,allow
allow from (Your Server IP)
allow from (Your Local IP)
deny from all
-
11
Restart the httpd service:
service httpd restart
-
12
Configure MRTG to start automatically:
chkconfig --level 0123456 mrtg on
-
13
Configure MRTG to update automatically:
up2date --configure
-
14
Select the "skip-list" option and add MRTG to the skip-list:
"mrtg*"
-
15
Access MRTG by visiting: http://server-IP/mrtg in your web browser. "server-IP" should be replaced by the IP address of your server.
-
1