MRTG Installation
MRTG Installation
- yum install net-snmp-libs net-snmp-devel net-snmp-utils
- yum install mrtg
- cfgmaker -global ‘WorkDir: /var/www/html/mymrtg’ -output /etc/mrtg/cisco_switch_mrtg.cfg communityname@192.168.1.1 (Switch/Router IP Address)
- indexmaker –output=/var/www/html/mymrtg/index.html /etc/mrtg/ cisco_switch_mrtg.cfg
- cp -av /var/www/mrtg/*.png /var/www/html/mymrtg/
- /usr/bin/mrtg /etc/mrtg/ cisco_switch_mrtg.cfg
- env LANG=C /usr/bin/mrtg /etc/mrtg/mymrtg.cfg –logging /var/log/mrtg.log
- make the following entry in the crontab (crontab -e)
*/1 * * * * env LANG=C /usr/bin/mrtg /etc/mrtg/ cisco_switch_mrtg.cfg
fw-Router#
fw-Router# config t
fw-Router(config)#
fw-Router(config)#snmp-server contact Manoj Chauhan
fw-Router(config)#snmp-server community communityname
fw-Router(config)#snmp-server enable traps all (Enable all traps)
fw-Router(config)#snmp-server host inside 192.168.1.6 udp-port 161 (inside Name of interface GigabitEthernet0/1)
fw-Router(config)#wr mem
From the MRTG just run to check the snmp
snmpwalk -v 2c -c coldstart 192.168.1.1 (Firewall IP Address) | more





July 6th, 2010 at 5:35 pm
To test snmp configurtions if snmp configured properly or not.
we can run ,
#snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
July 6th, 2010 at 8:09 pm
yes, you are right. basically snmpwalk is linux tool to use monitor network traffic using SNMP