<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>