[mrtg] Re: using mrtg to monitor cpu and load

Dan Rich drich at employees.org
Mon Feb 5 23:25:56 MET 2001


On Thu, 1 Feb 2001, tom carlile wrote:

> 
> hi.  i've setup mrtg to monitor network traffic on a set
> of production servers.  now it looks like i'll need to set it
> up to monitor cpu, load and disk availability as well.
> it doesn't seem that this is mentioned in the documentation.
> someone online suggested that i'll have to hack up mrtg to
> get that functionality out of it. 
> 
> surely this has been done before, and done right. 

Right is of course a relative term. :)

I didn't have to make any changes to snmpd.conf, beyond setting up
a working RO community.

I'm using the following for monitoring disk on a Linux box:
    NOTES:  The snmp hostname and community string have been removed
	    The *4 on the Target is because some filesystems report 4K
		blocks -- you'll have to use snmpwalk to see if
		you need this and to get the value for maxbytes --
		look for host.hrStorage.hrStorageTable.hrStorageEntry

Target[morpheus_disk4]:.1.3.6.1.2.1.25.2.3.1.6.4&.1.3.6.1.2.1.25.2.3.1.5.4:XXXXX at hostname
* 4
MaxBytes[morpheus_disk4]: 1548096
Options[morpheus_disk4]: gauge
YLegend[morpheus_disk4]: Disk Usage (MB)
LegendI[morpheus_disk4]: Used:
LegendO[morpheus_disk4]: Total:
Legend1[morpheus_disk4]: Space Used (MB)
Legend2[morpheus_disk4]: Total Space (MB)
Legend3[morpheus_disk4]:  
Legend4[morpheus_disk4]:  
kMG[morpheus_disk4]: k,M,G,T,P
kilo[morpheus_disk4]: 1024
Unscaled[morpheus_disk4]: dwmy
Title[morpheus_disk4]: Disk Usage: /usr -- morpheus
PageTop[morpheus_disk4]: <H1>Disk Usage: /usr -- morpheus
 </H1>
 <TABLE>
   <TR><TD>System:</TD><TD>morpheus</TD></TR>
   <TR><TD>Maintainer:</TD><TD>Root <root></TD></TR>
   <TR><TD>Filesystem:</TD><TD>/usr</TD></TR>
  </TABLE>


And for CPU monitoring, I use:

Target[morpheus_CPU]: 1.3.6.1.4.1.2021.10.1.3.1&1.3.6.1.4.1.2021.10.1.3.1:XXXXXX at morpheus
MaxBytes[morpheus_CPU]: 100
Options[morpheus_CPU]: gauge
YLegend[morpheus_CPU]: CPU Load (%)
Legend1[morpheus_CPU]: CPU Load (%)
Legend2[morpheus_CPU]: &nbsp;
Legend3[morpheus_CPU]: &nbsp;
Legend4[morpheus_CPU]: &nbsp;
LegendI[morpheus_CPU]: &nbsp;
LegendO[morpheus_CPU]: &nbsp;
Title[morpheus_CPU]: CPU Load -- morpheus
PageTop[morpheus_CPU]: <H1>CPU Load (%) -- morpheus</H1>
 <TABLE>
   <TR><TD>System:</TD><TD>morpheus</TD></TR>
   <TR><TD>Maintainer:</TD><TD>Root <root></TD></TR>
  </TABLE>


-- 
Dan Rich <drich at employees.org> |   http://www.employees.org/~drich/
                               | "Danger, you haven't seen the last of me!" 
                               |   "No, but the first of you turns my stomach!"
                               |          -- The Firesign Theatre's Nick Danger



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list