[mrtg] Overcoming divide by zero exceptions
Tendolkar Mohit
Mohit.Tendolkar at thomson.net
Mon Dec 13 23:26:29 MET 2004
Hi,
I'm using MRTG to plot the value of target expressions that are made of
multiple OIDs, such as percentage of some items.
However, in certain contexts, the values of the actual SNMP counters
used in the expression are zero - which is also a valid condition: thus
even for a perfectly legitimate expression, while evaluating the value
of the target expression, perl/mrtg may encounter a divide by zero
exception. You may see such entries in the mrtg logs.
Have any of you experienced this?
If so, is there a way to instruct MRTG to evaluate the expression only
if it makes sense (the denominator evaluates to a non-zero values)?
Do let me know
Regards
Mohit
--
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