MRTG Installation

Written by Pravin on October 20, 2008 – 5:29 am -

MRTG Installation Gudie:

1)    yum install net-snmp-utils net-snmp, yum install mrtg
2)    service snmpd start
3)    chkconfig –add snmpd
4)    vi /etc/snmp/snmpd.conf
## Find “group   notConfigGroup v2c  notConfigUser” & add ‘rocommunity supp0rt’
Below it & then restart snmpd.
5)    Create a directory ‘mrtg’ or ‘myrtg’ under ‘/var/www/html’ OR
‘/usr/local/apache/htdocs/’.
6)    cfgmaker –global ‘WorkDir: /usr/local/apache/htdocs/mymrtg’ –output       /etc/mrtg/mymrtg.cfg supp0rt@192.168.5.2 (here the ip will be your server ip.)
7)    vi /etc/mrtg/mymrtg.cfg   & add following.
Target[192.168.5.2_2]: 2:supp0rt@192.168.5.2:
SetEnv[192.168.5.2_2]: MRTG_INT_IP=”127.0.0.1″ MRTG_INT_DESCR=”venet0″
MaxBytes[192.168.5.2_2]: 1250000
Title[192.168.5.2_2]: Traffic Analysis for 2 — 192.168.5.2

8)    mrtg /etc/mrtg/mymrtg.cfg  (you will get following output)

———————————————————————–
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:

env LANG=C /usr/bin/mrtg /etc/mrtg/mymrtg.cfg

9)    env LANG=C /usr/bin/mrtg /etc/mrtg/mymrtg.cfg  (you will get following output)

10) Point your browser to http://192.168.5.2/mymrtg/192.168.5.2_2.html.


Tags: , , , , , , , , , , , , , , , , , , , , , , , , ,
Posted in Dedicated Server Hosting | No Comments »

Leave a Comment

RSS

  • Subscribe Me

  • Tag Cloud

  • Archives