Re: Illegal Division By Zero?
Steve Shipway <[email protected]>
| Newsgroups | gmane.network.mrtg.user |
|---|---|
| Message-ID | <7294716191A1E142B80615ED2C633BCA01350116@uxcn10-2.UoA.auckland.ac.nz> |
Target[192.168.22.2_C-percent-used]: (1.3.6.1.2.1.25.2.3.1.6.2&PseudoZero:[email protected]: / 1.3.6.1.2.1.25.2.3.1.5.2&PseudoZero:[email protected]:) * 100 You are dividing by zero, hence the error. This expands out to the following: IN = (1.3.6.1.2.1.25.2.3.1.6.2:[email protected]: / 1.3.6.1.2.1.25.2.3.1.5.2:[email protected]:) * 100 OUT = (PseudoZero:[email protected]: / PseudoZero:[email protected]:) * 100 = ( 0 / 0 ) * 100 = divide by zero error You should replace the second pseudoZero with pseudoOne, which will not break the calculation (of course Im assuming the 1.5.2 OID never returns zero) Steve Steve Shipway University of Auckland ITS UNIX Systems Design Lead [email protected]<mailto:[email protected]> Ph: +64 9 373 7599 ext 86487 ________________________________ _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg