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

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

 

 

 

==============================================================================================================
Με την επιφύλαξη παντός νομίμου δικαιώματός μας. Κάθε μήνυμα ηλεκτρονικού 
ταχυδρομείου από την Τράπεζα της Ελλάδος (ΤτΕ) αποστέλλεται καλόπιστα αλλά δεν 
τη δεσμεύει ούτε ερμηνεύεται ως να συνιστούσε ή επηρέαζε συμβατική ή άλλη 
δέσμευση της ΤτΕ.

Το μήνυμα ηλεκτρονικού ταχυδρομείου προορίζεται προς αποκλειστική χρήση του 
προσώπου, του οποίου η διεύθυνση αναγράφεται στην επικεφαλίδα του μηνύματος. Ο 
αποστολέας και η ΤτΕ δεν αναλαμβάνουν καμμία ευθύνη για ανακριβειες, παραβίαση 
της ακεραιότητας, απώλεια ή καθυστερημένη διαβίβαση του μηνύματος, για αστοχία, 
διακοπή ή υποβάθμιση της υπηρεσίας ή του μηνύματος καθώς και για κάθε εξ αυτού 
του λόγου απώλεια ή ζημία καθόλη την υπό του νόμου προβλεπόμενη έκταση.

Εάν λάβατε κατά λάθος το παρόν μήνυμα ηλεκτρονικού ταχυδρομείου, παρακαλούμε να 
ειδοποιήσετε αμέσως μέσω ηλεκτρονικού ταχυδρομείου τον αποστολέα και να 
διαγράψετε το μήνυμα. Οποιαδήποτε ανακοίνωση, διάδοση ή χρήση μέρους ή 
ολόκληρου του μηνύματος χωρίς άδεια απαγορεύεται αυστηρά και μπορεί να επιφέρει 
ποινική και αστική ευθύνη.


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


_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to