[mrtg] Threshold question

Marc Tech tychie77 at yahoo.com
Mon Dec 23 14:21:46 MET 2002


Hi!
I have a question for myself ..if someone could help
me out...I have configured the threshold parameters in
my mrtg.cfg file.the
configuration is as follows:

#------------------------------------------------------Target[broadlogic]:
-2:ectele2 at 203.130.15.2:
MaxBytes[broadlogic]: 1250000
ThreshMinI[broadlogic]: 250000
ThreshProgI[broadlogic]:/usr/script/broad_threshold
ThreshProgOKI[broadlogic]:/usr/script/threshprogoki_script
Options[broadlogic]: bits,growright,nopercent
WithPeak[broadlogic]: wmy
Title[broadlogic]: Traffic Analysis for NSS Rx Circuit
PageTop[broadlogic]: <H3>Traffic Analysis for NSS Rx
Circuit</H3>
<TABLE>
    <TR><TD>System:</TD>     <TD>IPr in
Supernet</TD></TR>
    <TR><TD>Maintainer:</TD>
<TD>noc at super.net.pk</TD></TR>
    <TR><TD>Description:</TD><TD>sip0  </TD></TR>
    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd
(6)</TD></TR>
    <TR><TD>Ip:</TD>         <TD>203.130.15.2
()</TD></TR>
  </TABLE>
-------------------------------------------------------


I  have added the 2 lines i.e 
"ThreshProgI[broadlogic]:/usr/script/broad_threshold "
& "
ThreshProgOKI[broadlogic]:/usr/script/threshprogoki_script"


in my conf file as you can see above ...

The mrtg file was reconfigured and it did not give any
errors.Now the
problem that i am facing is that when i remove the
ethernet cable from
my "boradlogic" receiver box then i can see a sudden
drop in the
throughput which goes below 250000 but still i donot
get any alerts from
the mrtg machine.I have set scripts namely
"broad_threshold" when there
is a threshold breach and "threshprogoki_script" when
the thresold
becomes OK ...but still there something fishy going on
..... The script
"broad_threshold" contains the following:

#!/bin/bash
echo "NSS is down" | sendmail -t salmanah at super.net.pk

while the script "threshprogoki_script" contains :

#!/bin/bash
echo "To: Salman Hashmi <salmanah at super.net.pk>"
echo "From: root <root at help.super.net.pk>"
echo "X-Priority: 1 (Highest)"
echo "Subject: AutoNOC: Alert  !! NSS Ok now"
echo "This is an alert for you because now the NSS is
OK !"| sendmail -t
salmanah at super.net.pk


Can you help me in this regard ??? 

Regards,
Marc....

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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