Illegal Division By Zero?

[email protected]
Newsgroups gmane.network.mrtg.user
Message-ID <OFE0CD24DC.83CBCB16-ON85257A23.004FE97C-85257A23.00511671@jwpepper.com>
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:[email protected]: / 
1.3.6.1.2.1.25.2.3.1.5.2&PseudoZero:[email protected]:) * 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

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.