[mrtg] MRTG Template to monitor Linux Server
Steve Lindemann
steve at marmot.org
Thu Oct 11 20:51:45 CEST 2007
Cook, Garry wrote:
> Anyone have a quick and dirty template to monitor Linux servers via MRTG? I have templates setup for my routers and switches, but have a few servers that need to be monitored as well. I'm looking for things like CPU usage, Packet Rate, and Hard Drive space. I used to have one, but can't locate it now. I've consulted The Google and believe it or else I haven't found anything useful.
> Thanx in advance...
>
> Garry W. Cook, CCNA
> Network Systems Specialist
> ARCADIS U.S., Inc.
I can't answer all of your question... but I do monitor load average with:
mrtg.cfg:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
### Global Config Options
WorkDir: /var/www/mrtg
Options[_]: growright,unknaszero,withzeroes
WithPeak[_]: wmy
Forks: 10
Interval: 5
### loadavg
Target[loadavg]: `/usr/local/bin/linux_loadavg_mrtg`
MaxBytes[loadavg]: 50
Title[loadavg]: Load Average
PageTop[loadavg]: <H2>Load Average on Email Server</H2>
Options[loadavg]: growright,gauge,absolute,nopercent
YLegend[loadavg]: Load Avgerage
ShortLegend[loadavg]: unit
Legend1[loadavg]: Load Average (1min)
Legend2[loadavg]: n/a
Legend3[loadavg]: Maximal 5 Minute Load Average
Legend4[loadavg]: n/a
LegendI[loadavg]: Value:
LegendO[loadavg]: n/a:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
program linux_loadavg_mrtg:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://oss.oetiker.ch/mrtg/pub/contrib/linux_loadavg_mrtg.tar.gz
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Steve Lindemann __
Network Administrator //\\ ASCII Ribbon Campaign
Marmot Library Network, Inc. \\// against HTML/RTF email,
url: http://www.marmot.org //\\ vCards & M$ attachments
email: mailto:steve at marmot.org
voice: +1.970.242.3331 ext 16
fax: +1.970.245.7854
More information about the mrtg
mailing list