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 1c1 < #!/usr/bin/perl -w --- > #!/usr/sepp/bin/perl-5.8.4 -w 4,7c4 < # 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. > [r...@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 -- 73, Ged. _______________________________________________ smokeping-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
