[mrtg] Illegal Division By Zero?

MMartin at jwpepper.com MMartin at jwpepper.com
Wed Jun 20 16:45:40 CEST 2012


Hello All,

MRTG v2.17.2

I have been running MRTG for probably 6+ Months now and a couple weeks ago 
something happened with the server it is running on
which erased the cron entry for MRTG. So basically MRTG hadn't been 
running for a few weeks. So yesterday I finally realized that it was off
and I turned it back on.

After I turned it back on my "mrtg.log" is filling up with this entry 
below:

        ERROR: Target[192.168.22.2_c-percent-used][_OUT_] '( 
$target->[1746]{$mode}  /  $target->[1747]{$mode} ) * 100' (kill): Illegal 
division by zero at (eval 66642) line 1.

I'm not sure why I would be getting this error since the graph IS 
displaying/graphing the CORRECT data...? Is there something wrong with my 
target 
line below? Or is this a bug in my version?

Target[192.168.22.2_C-percent-used]: 
(1.3.6.1.2.1.25.2.3.1.6.2&PseudoZero:public at 192.168.22.2: / 
1.3.6.1.2.1.25.2.3.1.5.2&PseudoZero:public!@192.168.22.2:) * 100

These are the outputs of the snmpget requests so you can see their values 
are not zero:

snmpget -v1 -c public 192.168.22.2 1.3.6.1.2.1.25.2.3.1.6.2
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 4050063

snmpget -v1 -c public 192.168.22.2 1.3.6.1.2.1.25.2.3.1.5.2
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 5241197


Any thoughts would be great!

Thanks in Advance,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20120620/a899d8c0/attachment.htm 


More information about the mrtg mailing list