[mrtg] Re: Threshold Examples?

Grabowski, David david.grabowski at us.mizuho-sc.com
Thu Jun 10 20:21:34 MEST 2004


Here's a sample. Community name changed to protect the innocent.

FSW2K01 is a W2K server that has a 4996 MByte C: drive. hrStorageUsed
returns the number of 4096-byte blocks that are in use. Dividing that by
256 gives me the number of MBytes.

I normally send alerts at 80% utilization, so the threshold is 3996.

The two batch files simply send e-mail using blat. See below for a
sample.

YLegend[FSW2K01.storageUsedC]: MBytes Used
WithPeak[FSW2K01.storageUsedC]: ymw
XSize[FSW2K01.storageUsedC]: 300
Options[FSW2K01.storageUsedC]: gauge,noo
Target[FSW2K01.storageUsedC]:
.1.3.6.1.2.1.25.2.3.1.6.2&.1.3.6.1.2.1.25.2.3.1.6.2:foobar at FSW2K01 / 256
MaxBytes1[FSW2K01.storageUsedC]: 4996
MaxBytes2[FSW2K01.storageUsedC]: 4996
Title[FSW2K01.storageUsedC]: Disk Used
ShortLegend[FSW2K01.storageUsedC]: MBytes
Legend1[FSW2K01.storageUsedC]: C: in next minute
Legend3[FSW2K01.storageUsedC]: Maximal 5 Minute C:
LegendI[FSW2K01.storageUsedC]:  C:
Unscaled[FSW2K01.storageUsedC]: dwmy
ThreshMaxI[FSW2K01.storageUsedC]: 3996
ThreshProgI[FSW2K01.storageUsedC]:
/mrtg/bin/windows-threshold-exceeded.cmd
ThreshProgOKI[FSW2K01.storageUsedC]: /mrtg/bin/windows-threshold-ok.cmd
PageTop[FSW2K01.storageUsedC]: <H1>Disk Utilization 
	</H1>
	<TABLE>
		<TR><TD>System:</TD><TD>FSW2K01</TD></TR>
		<TR><TD>C:</TD><TD>.1.3.6.1.2.1.25.2.3.1.6.2</TD></TR>
	</TABLE>



Here's the complete text of windows-threshold-ok.cmd:

echo Module: %1  Current Value: %3  Limit: %2 | blat - -to me at domain.com
-f mrtg at domain.com -server exmail -s "MRTG Threshold OK: %1: %3 / %2"


Not pretty, but it does the trick. Similar for
windows-threshold-exceeded.cmd.


> -----Original Message-----
> From: chastaib at genco.com [mailto:chastaib at genco.com]
> Sent: Thursday, June 10, 2004 10: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
> 
> 
#####################################################################################
CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are confidential. It is neither an offer to buy or sell, nor a solicitation of an offer to buy or sell, any securities or any related financial instruments mentioned in it. If you are not the named recipient please notify the sender and immediately delete it. You may not disseminate, distribute, or forward this e-mail message or disclose its contents to anybody else. Unless otherwise indicated, copyright and any other intellectual property rights in its contents are the sole property of Mizuho Securities USA Inc.
     E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.  If verification is required please request a hard-copy version.
     Although we routinely screen for viruses, addressees should check this e-mail and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our customers and business, we may monitor and read e-mails sent to and from our server(s).
#####################################################################################

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