[mrtg] Overcoming divide by zero exceptions
Mohit.Tendolkar at thomson.net
Mon Dec 13 23:26:29 MET 2004
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
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg