[smokeping-users] probes tcpping : ERROR: TCPPing 'binary' does not point to an executable

Gregory Sloop gregs at sloop.net
Tue Feb 12 18:05:26 CET 2019


IIRC, TCPPing has to run as root, and usually need the SUID bit set. 
Is that perhaps the problem?

-Greg

AS> Hi! It seems that tcpping is required to be a binary? Or what exactly is
AS> going on? I have the following :

AS> *** Probes ***
AS> + FPing
AS> binary = /usr/sbin/fping
AS> blazemode = true

AS> + TCPPing
AS> binary = /root/bin/tcpping
AS> forks = 1

AS> *** Targets ***

AS> ls -lago /root/bin/tcpping
AS> -rwsr-xr-x. 1 9738 Feb 12 14:39 /root/bin/tcpping

AS> stat /root/bin/tcpping
AS>    File: ‘/root/bin/tcpping’
AS>    Size: 9738            Blocks: 24         IO Block: 4096   regular file
AS> Device: fe01h/65025d    Inode: 2359891     Links: 1
AS> Access: (4755/-rwsr-xr-x)  Uid: (    0/    root)   Gid: (    0/   root)
AS> Context: unconfined_u:object_r:bin_t:s0

AS> i ask if it is binary because i see in
AS> /usr/share/smokeping/Smokeping/probes/TCPPing.pm

AS> sub probevars {
AS>          my $class = shift;
AS>          return $class->_makevars($class->SUPER::probevars, {
AS>                  _mandatory => [ 'binary' ],
AS>                  binary => {
AS>                          _doc => "The location of your tcpping script.",
AS>                          _example => '/usr/bin/tcpping',
AS>                          _sub => sub {
AS>                                  my $val = shift;

AS>                                  return "ERROR: TCPPing 'binary' does 
AS> not point to an executable"
AS>                                          unless -f $val and -x _;


AS> i have the script from
AS> https://raw.githubusercontent.com/deajan/tcpping
AS> but i don't think that even the former incarnation of tcpping was binary
AS> ...

AS> Does anyone have an idea about this?
AS> Thank you!!
AS> Adrian

AS> _______________________________________________
AS> smokeping-users mailing list
AS> smokeping-users at lists.oetiker.ch
AS> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20190212/b0962e02/attachment.html>


More information about the smokeping-users mailing list