[smokeping-users] Question about upgrading from 2.2.7 to 2.4.2

G.W. Haywood ged at jubileegroup.co.uk
Thu Jun 11 19:31:13 CEST 2009

Hi Eric,

On Thu, 11 Jun 2009, Eric Chatham wrote:

> Do I have to re-define the libraries in the header of the smokeping
> binary?  I did.  I re-defined the location of perl, location of
> RRDTool and the location of the new smokeping libraries.

I trust you're making notes of all the things you're doing? :) Yes, if
they're not in the places that are listed.  (Actually it's a script,
not a binary.  You wouldn't want to change anything in a binary with a
text editor, but apart from that one of the neat things about the Unix
style is that the two kinds of program are pretty much interchangeable.)

Here are the changes I did in .../bin/smokeping on a mailserver:
mail4:/home/ged/src/net/smokeping/bin# >>> diff smokeping smokeping.dist
< #!/usr/bin/perl -w
> #!/usr/sepp/bin/perl-5.8.4 -w
< # 2008.04.24: Corrected -- GWH --
< use lib qw(/usr/local/rrdtool/lib/perl);
< # 2008.04.24: Added -- GWH --
< use lib qw(/usr/lib/perl5/site_perl/lib);
> use lib qw(/usr/pack/rrdtool-1.2.23-mo/lib/perl);
If you aren't used to 'diff' output then better do some more reading!
It's an extremely useful tool.

> [root at laxvpn001 smokeping]# /home/smokeping/alt/smokeping/bin/smokeping...
> Sent data to Server and got new config in response.

That's good!

> Use of uninitialized value in pattern match (m//) at
> /home/smokeping/alt/smokeping/lib/Smokeping/probes/FPing.pm line 67.

That looks like you haven't told your slaves where the fping binary is.
That might be a little wrinkle: if the fping binar(ies) on your slaves
aren't in the same location as the one on your master, you might need
to do something sneaky like create a symlink with the same path as on
the master so that the slaves can find it:

mail4:/home/ged/src/net/smokeping/bin# >>> l /usr/local/sbin/fping
-rwsr-xr-x  1 root root 52780 2008-04-24 12:46 /usr/local/sbin/fping*
mail4:/home/ged/src/net/smokeping/bin# >>> l /usr/local/bin/fping
lrwxrwxrwx  1 root root 13 2008-04-24 12:56 /usr/local/bin/fping -> ../sbin/fping*
mail4:/home/ged/src/net/smokeping/bin# >>> l /usr/bin/fping
lrwxrwxrwx  1 root root 19 2008-04-25 10:37 /usr/bin/fping -> ../local/sbin/fping*
mail4:/home/ged/src/net/smokeping/bin# >>> l /usr/sbin/fping
/usr/bin/ls: /usr/sbin/fping: No such file or directory



More information about the smokeping-users mailing list