Page 1 of 1
check_icmp: Failed to obtain ICMP socket: Operation not perm
Posted: Thu Aug 02, 2012 11:10 am
by benhank
Can you guys please show me how to fix this?
Warning: This plugin must be either run as root or setuid root.
To run as root, you can use a tool like sudo.
To set the setuid permissions, use the command:
chmod u+s yourpluginfile
check_icmp: Failed to obtain ICMP socket: Operation not permitted
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 11:24 am
by benhank
I know that the solution is already listed in that error , but I dont know how to run the sudo command correctly and Dont want to screw this up
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 11:26 am
by slansing
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 11:33 am
by benhank
Code: Select all
login as: root
[email protected]'s password:
Last login: Thu Aug 2 11:15:55 2012 from 172.26.68.142
[root@lkennagioxib01 ~]# chmod 4750 check_icmp
chmod: cannot access `check_icmp': No such file or directory
[root@lkennagioxib01 ~]# cd /usr/local/nagios/libexec
[root@lkennagioxib01 libexec]# chmod 4750 check_icmp
[root@lkennagioxib01 libexec]# sudo chmod 4750 check_icmp
[root@lkennagioxib01 libexec]#
issue persists =(
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 11:35 am
by benhank
ok the error changed to
(Return code of 126 is out of bounds - plugin may be missing)
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 11:46 am
by slansing
Okay that's good, now re-enable execution permissions:
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 12:00 pm
by benhank
odd on the server that it is not working on the permissions are set like this:
but on my other two servers it's set like this:
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 12:33 pm
by nscott
In that case, I believe it can be duplicated by a
chmod 7555 check_icmp
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 12:46 pm
by benhank
that command changed them to :
r-sr-sr-t no go.
I REALLY appreciate the time you are investing into helping me.
Re: check_icmp: Failed to obtain ICMP socket: Operation not
Posted: Thu Aug 02, 2012 12:49 pm
by benhank
ITS WORKING! THANK YOU THANK YOU THANK YOU!