Upload
kory-black
View
230
Download
0
Embed Size (px)
Citation preview
NMS LAB4
WEB based SNMP monitoring with MRTG
Basic SNMP config to router Allow SNMP only from server computer
MRTG
Free easy to use to monitor few router interfaces With many routers and switches some other tool
might be better (cacti etc)
MRTG Multi Router Traffic Grapher
Easy to use www-based router interface traffic grapher (Config creator creates ready interface monitoring config)
Can be used to graph other SNMP variables as well
Requirements
Server with: WWW-server (Apache installed on server
computer) Www-root c:\program files\apache
Perl (Active Perl installed on server computer) MRTG .zip package from
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/ (Check c:\downloads)
MRTG Usage Unzip mrtg to c:\temp\mrtg (If directory exist delete
it)
Use configmaker to create initial config from SNMP-device (perl configmaker in Windows) (Workdir to www-servers webroot/mrtg -folder (Remember to create folder)
Edit config (Check workdir and options)
Use MRTG to create graphs from config (perl mrtg config.conf
Use indexmaker to create nice index-page (perl indexmaker)
Needed options and commandline parameters are in mrtg:s documentation
MRTG ALLWAYS MONITORS TWO VALUES Normally traffic in / traffic out
MRTG conf (1 interface)### Interface 1 >> Descr: 'Cisco-PIX-Security-Appliance-'outside'-interface' | Name: 'outside' | Ip: '194.100.201.110' | Eth: '00-06-53-36-83-c9' ###
Target[192.168.254.254_1]: 1:[email protected]:SetEnv[192.168.254.254_1]: MRTG_INT_IP="194.100.201.110" MRTG_INT_DESCR="Cisco-PIX-Security-Appliance-'outside'-interface"MaxBytes[192.168.254.254_1]: 12500000Title[192.168.254.254_1]: Traffic Analysis for EVTEK Internet connectionPageTop[192.168.254.254_1]: <H1>Traffic Analysis for EVTEK Internet connection</H1> <TABLE> <TR><TD>System:</TD> <TD>pix.evtek.fi in Espoo-konehuone</TD></TR> <TR><TD>Maintainer:</TD> <TD>[email protected]</TD></TR> <TR><TD>Description:</TD><TD>Cisco-PIX-Security-Appliance-'outside'-interface </TD></TR> <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> <TR><TD>ifName:</TD> <TD>outside</TD></TR> <TR><TD>Max Speed:</TD> <TD>100.0 Mbits/s</TD></TR> <TR><TD>Ip:</TD> <TD>XXX.XXX.XXX.XXX</TD></TR> </TABLE>
Unique identifierKey word
All this is needed to monitor 2
SNMP variables
Community
Router IP
MRTG
More information on web http://oss.oetiker.ch/mrtg/ http://oss.oetiker.ch/mrtg/doc/index.en.html