On 2/12/19 7:05 PM, Gregory Sloop wrote:
IIRC, TCPPing has to run as root, and usually need the SUID bit set.
Is that perhaps the problem?
well, see below, it is suid :
Access: (4755/-rwsr-xr-x)

BUT, the suid part should not matter as smokeping runs as root, and i can use the command without problem

Thanks!
Adrian


-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 <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@lists.oetiker.ch <mailto:smokeping-users@lists.oetiker.ch> AS> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users <https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users>


_______________________________________________
smokeping-users mailing list
smokeping-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to