[mrtg] Re: Threshold Examples?

Manny Ortega aortega at univ-wea.com
Thu Jun 10 18:03:47 MEST 2004


#### Pike User_Data current usage
Target[pike.user.data]:
.1.3.6.1.4.1.789.1.5.4.1.3.5&.1.3.6.1.4.1.789.1.5.4.1.4.5:SNMPPWD at IPADDRESS
RouterUptime[pike.user.data]: SNMPPWD at IPADDRESS
MaxBytes[pike.user.data]: 175366844
Title[pike.user.data]: Pike User_Data current usage
PageTop[pike.user.data]: <H1>Pike User_Data current usage</H1>
	<TABLE>
		<TR><TD>System:</TD><TD>Pike User_Data current
usage</TD></TR>
		<TR><TD>Maintainer:</TD><TD>Manny Ortega</TD></TR>
		<TR><TD>Pike User_Data kbytes
total:</TD><TD>1.3.6.1.4.1.789.1.5.4.1.3.5</TD></TR>
		<TR><TD>Pike User_Data kbytes
used:</TD><TD>1.3.6.1.4.1.789.1.5.4.1.4.5</TD></TR>
	</TABLE>

ShortLegend[pike.user.data]: B
kMG[pike.user.data]: k,M,G,T,P
kilo[pike.user.data]: 1024
Unscaled[pike.user.data]: dwmy
YLegend[pike.user.data]: Disk Utilization
Legend1[pike.user.data]: Volume size
Legend2[pike.user.data]: Volume usage
Legend3[pike.user.data]:.
Legend4[pike.user.data]:.
LegendI[pike.user.data]: Total size:&nbsp;
LegendO[pike.user.data]: usage:&nbsp;
Options[pike.user.data]: gauge
ThreshMaxO[pike.user.data]: 131525133 
ThreshProgO[pike.user.data]: usrdta.bat 
# 75% 131525133 

Pike is a Netapp filer and I am monitoring a share (User_Data) that is
arount 170Gb.
The kbytes total OID is the one ending in 1.3.5 and it returns the following
number: 175366844
That's 175 million kbytes that with the option of k=1024 gives me arount
167.2Gb

I want MRTG to send me an email when it goes over 75%, so ThreshMaxO is
131525133, which is 75% of 175366844

Pretty simple...
And when it goes over 75% (or 131525133), then usrdta.bat executes, which a
mail program (Blat) that sends me an email telling me so...
Wanna see the page? http://houmm.univ-wea.com/MRTG/pike.user.data.html
Hope this helps...

-MannyO

p.s. I will *never* get the Gb or GB or Kb or KB straight; bits, bytes, I
always get them confused, but you guys know what I'm talking about ;)

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of chastaib at genco.com
Sent: Thursday, June 10, 2004 9:54 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Threshold Examples?

Greetings,
     I want to use the Threshold Checking parameters in MRTG to allow me to
check HDD space and send out an email message if certain parameters are
exceeded.
     Does anyone have some examples of this they can share?
     I've read through the documentation, but am still not sure how to
implement this feature.
     For example, if I'm monitoring the percent used space on my hard drive,
do I set up the ThreshMinI variable like: ThreshMinI[servername]:
90%
     Secondly, if I want to call a program, do I used ThreshProgI like:
ThreshProgI[servername]: `execute external program` Thanks for your help,
Brian




--
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

--
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