<html><head><title>Re: [smokeping-users] probes tcpping : ERROR: TCPPing 'binary' does not point to an executable</title>
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">IIRC, TCPPing has to run as root, and usually need the SUID bit set. <br>
Is that perhaps the problem?<br>
<br>
-Greg<br>
<br>
<span style=" color: #800000;"><b>AS> Hi! It seems that tcpping is required to be a binary? Or what exactly is<br>
AS> going on? I have the following :<br>
<br>
AS> *** Probes ***<br>
AS> + FPing<br>
AS> binary = /usr/sbin/fping<br>
AS> blazemode = true<br>
<br>
AS> + TCPPing<br>
AS> binary = /root/bin/tcpping<br>
AS> forks = 1<br>
<br>
AS> *** Targets ***<br>
<br>
AS> ls -lago /root/bin/tcpping<br>
AS> -rwsr-xr-x. 1 9738 Feb 12 14:39 /root/bin/tcpping<br>
<br>
AS> stat /root/bin/tcpping<br>
AS>    File: ‘/root/bin/tcpping’<br>
AS>    Size: 9738            Blocks: 24         IO Block: 4096   regular file<br>
AS> Device: fe01h/65025d    Inode: 2359891     Links: 1<br>
AS> Access: (4755/-rwsr-xr-x)  Uid: (    0/    root)   Gid: (    0/   root)<br>
AS> Context: unconfined_u:object_r:bin_t:s0<br>
<br>
AS> i ask if it is binary because i see in<br>
AS> /usr/share/smokeping/Smokeping/probes/TCPPing.pm<br>
<br>
AS> sub probevars {<br>
AS>          my $class = shift;<br>
AS>          return $class->_makevars($class->SUPER::probevars, {<br>
AS>                  _mandatory => [ 'binary' ],<br>
AS>                  binary => {<br>
AS>                          _doc => "The location of your tcpping script.",<br>
AS>                          _example => '/usr/bin/tcpping',<br>
AS>                          _sub => sub {<br>
AS>                                  my $val = shift;<br>
<br>
AS>                                  return "ERROR: TCPPing 'binary' does <br>
AS> not point to an executable"<br>
AS>                                          unless -f $val and -x _;<br>
<br>
<br>
AS> i have the script from<br>
</b></span></span><a style=" font-family:'courier new'; font-size: 9pt;" href="https://raw.githubusercontent.com/deajan/tcpping">AS> https://raw.githubusercontent.com/deajan/tcpping</a><br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>AS> but i don't think that even the former incarnation of tcpping was binary<br>
AS> ...<br>
<br>
AS> Does anyone have an idea about this?<br>
AS> Thank you!!<br>
AS> Adrian<br>
<br>
AS> _______________________________________________<br>
AS> smokeping-users mailing list<br>
</b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:smokeping-users@lists.oetiker.ch">AS> smokeping-users@lists.oetiker.ch</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users">AS> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
</body></html>