[smokeping-users] Illegal division by zero ... FPing.pm

Webmaster Jim james0411 at spoonfork.org
Sat Oct 30 16:42:14 MEST 2004


I've been happily using smokeping on a NetBSD workstation for several
months (my 400 day charts are filling nicely). Yesterday I built
smokeping 1.31 on a Tru64 UNIX system in our datacenter. It seems as if
our network is too fast (;-) since fping is telling me:

Illegal division by zero at ...1.31/lib/probes/FPing.pm line 66.

The NetBSD machine is on a 10BaseT line.  Fping there shows this:

$ /usr/pkg/sbin/fping -C 5 tdc905
tdc905 : [0], 84 bytes, 0.45 ms (0.45 avg, 0% loss)
tdc905 : [1], 84 bytes, 0.42 ms (0.43 avg, 0% loss)
tdc905 : [2], 84 bytes, 0.43 ms (0.43 avg, 0% loss)
tdc905 : [3], 84 bytes, 0.43 ms (0.43 avg, 0% loss)
tdc905 : [4], 84 bytes, 0.42 ms (0.43 avg, 0% loss)

tdc905 : 0.45 0.42 0.43 0.43 0.42

The Tru64 server with 100BastT shows:

$ /usr/local/bin/fping -C 5 tdc095
tdc095 : [0], 84 bytes, 0.97 ms (0.97 avg, 0% loss)
tdc095 : [1], 84 bytes, 0.00 ms (0.48 avg, 0% loss)
tdc095 : [2], 84 bytes, 0.00 ms (0.32 avg, 0% loss)
tdc095 : [3], 84 bytes, 0.00 ms (0.24 avg, 0% loss)
tdc095 : [4], 84 bytes, 0.00 ms (0.19 avg, 0% loss)

tdc095 : 0.97 0.00 0.00 0.00 0.00

Other runs may show all zeroes.

I had smokeping working for a few hours on the fast machine, but after
adding a few more servers to the config I am getting divide by zero
errors that seem to be caused by the fping times being so low. I have
the same version of fping on both OSes.

Is there a way to trap the zeroes?

------
<http://www.cs.indiana.edu/picons/db/users/org/spoonfork/james0407/face.xbm>
<http://www.altavista.com/cgi-bin/query?q=%22web+home+for+jim+spath%22>
<http://www.google.com/search?q=web+home+for+jim+spath>
Marvin the Paranoid Android says:
Would you like that?

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the smokeping-users mailing list