0% found this document useful (0 votes)
86 views4 pages

Nagios & MRTG Network Monitoring Guide

The document discusses using Nagios and MRTG for network monitoring. Nagios is used to monitor the availability of routers, switches, servers and applications. MRTG graphs performance metrics collected from these devices using SNMP. The network administrator implemented a monitoring system using these tools on a Linux server to monitor their WAN infrastructure, including links, servers and a custom sensor to monitor server room temperature. The system has grown to monitor over 200 services across multiple locations. Nagios and MRTG provide visibility into network performance and availability issues.

Uploaded by

narsingthakur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views4 pages

Nagios & MRTG Network Monitoring Guide

The document discusses using Nagios and MRTG for network monitoring. Nagios is used to monitor the availability of routers, switches, servers and applications. MRTG graphs performance metrics collected from these devices using SNMP. The network administrator implemented a monitoring system using these tools on a Linux server to monitor their WAN infrastructure, including links, servers and a custom sensor to monitor server room temperature. The system has grown to monitor over 200 services across multiple locations. Nagios and MRTG provide visibility into network performance and availability issues.

Uploaded by

narsingthakur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

NetworkMonitoringwithNagiosandMRTG

Nagiosisagreatmonitoringtoolandit'scompletelyfreetoo!
NagiosrunsonLinuxandusesapluginsystemwhichmakesitperfectlycustomizeable.
AtourfacilityIworkedthelastcoupleofmonthsprimarilyonreplacingourcommercial
monitoringsystemwithNagios.WeuseNagiosformonitoringourWANandLANinfrastructure.
Itstartedouttomonitorjusttheperfomanceandavailabilityofourroutersandswitches,but
quicklyitbeguntogrowmoreandmore.WhileIdiscoverednewfeaturesandpluginsforNagios
mycolleaguesstartedtoaskmeifIcouldmonitorotherstuff.Thisresultedinagreatdealofwork,
butworkingandlearningwithNagiosisfun!
Serverandoperatingsystem
BecauseIamagreatfanofLinuxanddon'twanttouseWindowsanymoreitwasclearfromthe
startthatourmonitoringsystemwouldbebuiltonLinux.IchoosetorunaDebianUnstable
installationonaHPNetserverE800with1024mbRAM.
Softwarecomponents
Ourmonitoringsetupismadeof2components.1)NagiosforAvailabilityandServermonitoring.
2)MRTGforperformancemonitoring.AroundthesetwosystemsIwroteawebbasedshellsoit
lookslikeanintegratedsystem.

Nagiospage

Whatdowemonitor?
WemonitoralmostallourservicesforWANandLANinfrastructure.Thismeansatthemoment
almost200servicesandthisnumberisstillgrowing.Otherlocationsofourcompany(wehave4
locationswithownAdministrators,ourlocationisresponsiblefortheWANinfrastructure)are
rapidlyaskingtomonitortheirservicestoo.
Theserviceswemonitorare:
1. Serverroomtemperature(withaselfmadesensorandselfwrittensoftware)
2. WANlinks
3. Netwareservers
4. Windows2000/NTservers
MonitoringServerroom
Wemonitorourserverroomusinganserialinterfacetemperaturesensorlogger.Thiskitiseasyto
build.ThenwewroteanapplicationthatreadsouttheTemperature.Thisprogramworksunder
LinuxandNetware.Thiswaywedon'thavetosetupLinuxboxesatourremoteoffices.MRTG
readsoutthetemperaturevaluesandgraphsthemnicely.

Servertemperature

MonitoringWANlinks
FormonitoringourWANlinksweuseNagiosandMRTG.Nagiospingstheremotelocationsevery
10minutes,ifthelinkisslowerthen100mswereceiveawarning,doesitgetslowerthen500mswe
getacriticalerrormessage.MRTGreadsoutperformanceinformationofourremoterouterswith
SNMPandgraphsthem.Thiswaywecanseeexactlythebandwithutilizationofourlinks.Before
weimplementedthissolutionwereceivedalotofquestionsofourremotelocationswhytheirlines
weresloworiftheyneededanbandwithupgrade.Thiswaywecanpresentthemwithgraphicsand
theycanseefortheirselvesthattheproblemwasn'tintheWANlinkbutintheirownnetwork.
MonitoringNetware
WemonitorNetwarewithNagiosthruapluginwhichpullshisinformationfromaNetwareserver
withMRTGEXT.NLMloaded.MRTEXT.NLMisaprogramwhichyou'llloadontheserverand
collectsstatisticsfromtheserver.Thenyoucanreaditoutwiththenwstatpluginfromnagiosor
withMRTG.Weuseboth!WithNagioswereceivewarningswhenaserverhasabended,whenit's
outoftimesync,wecangetnotificationifcertainNLMsaren'tloaded(greatformonitoring
Arcserve.)WealsoreceivewarningsiftheSYS:volumehaslessthen10%freeoriftheAverage
loadover15minutesget'shigherthen90%

NagiosandNetwaremonitoring
WithMRTGwegraphandmonitortheperformanceofNetwareservers.Allthestatisticswecan
gatherwithNagiosaregraphedbyMRTGbyusingthesameMRTGEXT.NLM.

MonitoringWindowsNT/2000servers
WeuseNagiostomonitorourWindowsservers.Wepingthemiftheyarestillthereandwe
monitorifsomeapplicationsarestillrunning.Wehadoneapplicationwhichwouldkillitselfoncea
while.Nowwegetanemailmessagewhentheapplicationisunloaded.
Conclusion
NagiosandMRTGprovideuswithanessentialinsightinourNetworkperfomanceandavailability.
Ithasenabledustorespondquicklytoerrorsinournetwork,andmostimportantly:itenablesusto
solveproblemsevenbeforeanyonenoticesthereareproblems!Ifyouarethinkingofimplementing
anmonitoringsystemyoushouldtakealooktothesetogreatfreeprograms.Anothergreatexample
ofhowtheOpenSourcecommunitycanhelpyouinnetworkmanagement.
Contactinformation
IfyouhavequestionsaboutNagiosoraboutourimplementationpleasecontactme.Iamalways
availableatGjdeBoer@rocfriesepoort.nl
GertJandeBoer
NetworkAdministratorROCFriesePoort
Links
www.nagios.orgNagios
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/MRTG
http://forge.novell.com/modules/xfmod/project/?mrtgextMRTGEXT.NLM

You might also like