[mrtg] detection down of snmp agent

Takumi Kadode taku_k at pb3.so-net.ne.jp
Wed Jul 11 07:25:07 MEST 2001


Hi,

I have a question according to execute threshold program.

As of now, I set configuration as follows.  In this configuration,
mail-fail.sh script will be executed when traffic arrives 80%.

Also, MRTG will record the value "-1" to logfile if SNMP agent stop.
So, then, I would like to execute other script when threshold value
become under the zero, or pass other environment value to the script.
What I want to do is send e-mail when SNMP agent stop.

Can anyone tell me to act above action ?
thank you,
---
takumi kadode

---------------------------------------------------------
WorkDir: /var/tmp/
ThreshDir: /var/tmp/threshdir
Target[netb]: 3:public at 192.168.0.1
MaxBytes[netb]: 12500000
Unscaled[netb]: dwmy
SetEnv[netb]: status=test
Title[netb]:     Traffic Analysis for 2
PageTop[netb]:   <H1>Traffic Analysis</H1>
Options[netb]: growright
ThreshProgI[netb]:  /var/tmp/mail-fail.sh
ThreshProgOKI[netb]:  /var/tmp/mail-ok.sh
ThreshMaxI[netb]:  80%
ThreshMinI[netb]:  0
--------------------------------------------------------- 


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