[smokeping-users] Smokeping probe with Rasberrypi (Rasbian/Debian) problem + solution. Do you have a better one perhaps?

ITheodoridis at bankofgreece.gr ITheodoridis at bankofgreece.gr
Fri Feb 22 11:49:45 CET 2013


Hello.

I have recently started experimenting with running a smokeping probe on
a Rasberrypi box (it's a mini pc board, which can run linux booting from
an sd card, and comes with network interface and usb ports, etc. The
Rasberrypi's card is loaded with a customized version of Debian called
Rasbian. I have added the packages needed for the libraries (fping,
echoping, the perl libraries, etc) and have tried both adding the
package for smokeping (with apt-get) and compiling from source (after of
course removing the packaged version).

When I try to run a probe on it using this command line

./bin/smokeping --master-url=http://<myserver>/cgi-bin/smokeping.fcgi
--cache-dir=/var/smokeping/ --slave-name=rasberrypi
--shared-secret=/var/smokeping/secret.txt

I get the normal message that the probe has communicated with the server
and has received configuration. But no data is being graphed for this
probe so I took a look at the log.

This is what it says:
/var/log # cat syslog | grep smokeping

Feb 21 12:12:04 raspberrypi smokeping[2300]: Starting syslog logging

Feb 21 12:12:04 raspberrypi smokeping[2304]: Smokeping version 2.006008
successfully launched.

Feb 21 12:12:04 raspberrypi smokeping[2304]: Entering multiprocess mode.

Feb 21 12:12:04 raspberrypi smokeping[2304]: No targets defined for
probe TelnetIOSPing, skipping.

Feb 21 12:12:04 raspberrypi smokeping[2304]: No targets defined for
probe CiscoRTTMonEchoICMP, skipping.

Feb 21 12:12:04 raspberrypi smokeping[2304]: No targets defined for
probe EchoPingHttp, skipping.

Feb 21 12:12:04 raspberrypi smokeping[2304]: Child process 2305 started
for probe FPing.

Feb 21 12:12:04 raspberrypi smokeping[2304]: All probe processes started
successfully.

Feb 21 12:12:04 raspberrypi smokeping[2305]: FPing: probing 2 targets
with step 300 s and offset 258 s.

Feb 21 12:14:18 raspberrypi smokeping[2305]: open3: exec of
/usr/sbin/fping -C 20 -q -B1 -r1 -i10 <myfirsttarget>  <mysecondtarget>
failed at /opt/smokeping/bin/../lib/Smokeping/probes/FPing.pm line 143

Feb 21 12:14:18 raspberrypi smokeping[2304]: Child process 2305 (probe
FPing) exited unexpectedly with status 256.

This is the same exactly as when I run it with the packaged version.

After that I took a look at line 143:
my $pid = open3($inh,$outh,$errh, @cmd); 

I tried the debug option which showed the same thing as the log and
after that I tried issuing that command myself: /usr/sbin/fping -C 20 -q
-B1 -r1 -i10 <myfirsttarget>. 

That gave me the message that there was no fping command at /usr/sbin. I
found out it was at /usr/bin directory. So I created a symbolic link to
overcome this problem.

I believe the slave takes the path for the probe from the master. Is
there any way I can change that on the probe? Without using that
symbolic link?

 

Using the Rasberrypi as a probe could prove to be very advantageous as
it has very low power consumption and can be easily shipped and
installed at remote locations (where you would need a probe).

Greetings to all,

 

-----------------------------------------------------

Ioannis Theodoridis

Network & Systems Engineer

-----------------------------------------------------

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130222/f8fbf215/attachment-0001.htm 
-------------- next part --------------
==============================================================================================================
?? ??? ????????? ?????? ??????? ??????????? ???. ???? ?????? ???????????? ???????????? ??? ??? ??????? ??? ??????? (???) ???????????? ????????? ???? ??? ?? ???????? ???? ??????????? ?? ?? ?????????? ? ???????? ????????? ? ???? ???????? ??? ???.

?? ?????? ???????????? ???????????? ??????????? ???? ???????????? ????? ??? ????????, ??? ?????? ? ????????? ??????????? ???? ??????????? ??? ?????????. ? ?????????? ??? ? ??? ??? ???????????? ?????? ?????? ??? ???????????, ????????? ??? ????????????, ??????? ? ????????????? ????????? ??? ?????????, ??? ???????, ??????? ? ?????????? ??? ????????? ? ??? ????????? ????? ??? ??? ???? ?? ????? ??? ????? ??????? ? ????? ?????? ??? ??? ??? ????? ???????????? ??????.

??? ?????? ???? ????? ?? ????? ?????? ???????????? ????????????, ??????????? ?? ???????????? ?????? ???? ???????????? ???????????? ??? ????????? ??? ?? ?????????? ?? ??????. ??????????? ??????????, ??????? ? ????? ?????? ? ????????? ??? ????????? ????? ????? ???????????? ??????? ??? ?????? ?? ???????? ??????? ??? ?????? ??????.


Any e-mail message from the Bank of Greece (BoG) is sent in good faith but shall neither be binding nor construed as constituting or affecting a contractual arrangement or other commitment by the BoG.

The e-mail is intended for the exclusive use of the person whose e-mail address appears in caption as recipient. The sender and the BoG decline liability for inaccuracy, breach of integrity, loss or delayed delivery of the message, for any failure in, interruption to or degradation of either the service or the message, as well as for any loss or damage sustained thereof to the fullest extent provided by law.

If this e-mail was not intended for you, please notify the sender immediately via e-mail and delete it at once. Any unauthorized disclosure, dissemination or use, either in whole or in part is strictly prohibited and may give rise to both criminal and civil liability. All rights reserved.
==============================================================================================================




More information about the smokeping-users mailing list