[prev in list] [next in list] [prev in thread] [next in thread]
List: mrtg
Subject: Re: [mrtg] Illegal Division By Zero?
From: Steve Shipway <s.shipway () auckland ! ac ! nz>
Date: 2012-06-20 20:19:48
Message-ID: 7294716191A1E142B80615ED2C633BCA01350116 () uxcn10-2 ! UoA ! auckland ! ac ! nz
[Download RAW message or body]
Target[192.168.22.2_C-percent-used]: \
(1.3.6.1.2.1.25.2.3.1.6.2&PseudoZero:public@192.168.22.2: / \
1.3.6.1.2.1.25.2.3.1.5.2&PseudoZero:public!@192.168.22.2:) * 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:public@192.168.22.2: / \
1.3.6.1.2.1.25.2.3.1.5.2:public!@192.168.22.2:) * 100
OUT = (PseudoZero:public@192.168.22.2: / PseudoZero:public!@192.168.22.2:) * 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
s.shipway@auckland.ac.nz<mailto:s.shipway@auckland.ac.nz>
Ph: +64 9 373 7599 ext 86487
________________________________
[Attachment #3 (text/html)]
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font \
color="#002f80" face="sans-serif" size="2">Target[192.168.22.2_C-percent-used]: \
(1.3.6.1.2.1.25.2.3.1.6.2&PseudoZero:public@192.168.22.2: / \
1.3.6.1.2.1.25.2.3.1.5.2&PseudoZero:public!@192.168.22.2:)
* 100</font> <br>
<br>
You are dividing by zero, hence the error.<br>
<br>
This expands out to the following:<br>
<br>
<font color="#002f80" face="sans-serif" size="2">IN = \
(1.3.6.1.2.1.25.2.3.1.6.2:public@192.168.22.2: / \
1.3.6.1.2.1.25.2.3.1.5.2:public!@192.168.22.2:) * 100</font> <br>
<br>
OUT = <font color="#002f80" face="sans-serif" \
size="2">(PseudoZero:public@192.168.22.2: / PseudoZero:public!@192.168.22.2:) * \
100</font><br> = ( 0 / 0 ) * 100<br>
= divide by zero error<br>
<br>
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)<br> <br>
Steve<br>
<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><strong>Steve Shipway</strong></div>
<div style="font-family:Tahoma; font-size:13px">University of Auckland ITS</div>
<div style="font-family:Tahoma; font-size:13px"><em>UNIX Systems Design \
Lead</em></div> <div style="font-family:Tahoma; font-size:13px"><a \
href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div> <div \
style="font-family:Tahoma; font-size:13px">Ph: +64 9 373 7599 ext 86487</div> \
<div style="font-family:Tahoma; font-size:13px"><em></em> </div> </div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
</div>
</div>
</body>
</html>
_______________________________________________
mrtg mailing list
mrtg@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
--===============0497405911==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic