[mrtg] Re: Interface UP/Down problems
Dave Jones
DJones at TheFund.com
Mon Oct 16 15:13:05 MEST 2000
Thank you for taking the time to confirm that. I guess I'll have to work on
implementing your suggestion.
Thanks again,
Dave
-----Original Message-----
From: Daniel J McDonald [mailto:dmcdonald at digicontech.com]
Sent: Monday, October 16, 2000 9:08 AM
To: 'Dave Jones'; mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] Interface UP/Down problems
> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch
> [mailto:mrtg-bounce at list.ee.ethz.ch]On
> Behalf Of Dave Jones
> Sent: Sunday, October 15, 2000 12:26 PM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Interface UP/Down problems
>
>
>
> I am running MRTG 2.8.10 on an NT 4.0 workstation. I am
> monitoring ISDN BRI
> lines for an up/down status. You will see my config below. In this
> scenario, if MRTG returns a 0, it means the interface is down. If it
> returns a 1, it is up. The two issues I am running into are:
>
> 1 - I want to receive a 0 at all times as the BRI's are
> backup interfaces.
> Therefore, I set my ThreshMaxI=0 and then the
> ThreshProgI=..... I bring the
> interface up and I don't get an e-mail. Out of curiosity, I set the
> ThreshMaxI= -1 and I will get an e-mail stating that the
> actual value=1 and
> the breach value= 1??? Does MRTG not recognize 0?
Yes, it is the case that 0 as a max doesn't work. This is an accident of
perl.
if ($$rcfg{'threshmaxi'}{$router} &&
$$rcfg{'threshmaxi'}{$router} < $threshinval) {
@threshinexec = ("$$rcfg{'threshprogi'}{$router}",
"$router", "$$rcfg{'threshmaxi'}{$router}",
"$threshinval");
}
In this case, $$rcfg{'threshmaxi'}{$router} equals zero, which is
interpreted as false. I'm not certain whether this could be changed to if
(defined $$...) instead of just the value, but the workarond is to make the
failure condition a number greater than 1. I set up my failure condition to
be the number of missed pings, e.g.
--
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