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: Apple Filing Protocol (AFP), Distributed File System (DFS), File Allocation Table (FAT, File System, Google File System (GFS), HFS, Hierarchical Filesystem (HFS+), JFFS, Journaling Flash Filesystem (JFFS), logical volume, Macintosh Filesystem (MFS), NetWare Core Protocol (NCP), Network Filesystem, New Technology File System (NTFS), NFS (Network Filesystem), Record-oriented Filesystems, ReiserFS, SAN, SAN (Storage Area Network) Cluster Filesystem, Shared-disk Filesystem, SMB, SMB (Server Message), Solid-state media Filesystems, Storage Area Network, Xsan, YAFFS
Posted in Dedicated Server Hosting | No Comments »



















