[smokeping-users] Re: Smokeping working erratically

Niko Tyni ntyni+smokeping-users at mappi.helsinki.fi
Thu Feb 17 18:57:39 MET 2005


On Wed, Feb 16, 2005 at 11:28:57AM +0000, Peter Farmer wrote:
> Hi all,
> 
> I recently upgraded smokeping from version 1.24 to version 1.38 so that 
> I could use some of the new plugins.
> 
> I've been plagued by the following problem, which is intermittent. The 
> backend runs fine, but the web frontend craps out with the following error.
> 
> Can't call method "step" on an undefined value at 
> /usr/local/smokeping/lib/Smokeping.pm line 855,  chunk 225.
 
> The live box is running FreeBSD 4.10-RELEASE-p5.

We got this solved off-list, so I'll post a summary here for the
benefit of others possibly stumbling on this.

The problem was that the LDAP probe in 1.38 and below doesn't cope
with Perl versions < 5.6 (Peter had 5.005) that don't have
the module 'bytes.pm'. This module is loaded inside an eval{} block
in Net::SSLeay, loaded from IO::Socket::SSL, loaded from the LDAP probe.

It seems that fatal errors inside an eval{} block trigger a signal
handler in SpeedyCGI. This made the probe loading fail, resulting in an
empty probe list and an error message about loading 'bytes.pm'.
Unfortunately due to another bug in Smokeping, the error situation
wasn't recognized on subsequent CGI runs inside speedy, resulting in
the message above (Can't call method "step"...).

Both bugs will be fixed in the next release, and I'll investigate
the SpeedyCGI signal handler stuff.
-- 
niko

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