[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 

        ERROR: Target[][_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 
line below? Or is this a bug in my version?

( at /!@ * 100

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

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

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

Any thoughts would be great!

Thanks in Advance,
-------------- 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