check_icmp: Failed to obtain ICMP socket: Operation not perm

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

check_icmp: Failed to obtain ICMP socket: Operation not perm

Post 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
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post 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
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post by slansing »

Hello Benhank,

Can you:

Code: Select all

chmod 4750 check_icmp
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post 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 =(
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post by benhank »

ok the error changed to

(Return code of 126 is out of bounds - plugin may be missing)
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post by slansing »

Okay that's good, now re-enable execution permissions:

Code: Select all

chmod 555 check_icmp
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post by benhank »

odd on the server that it is not working on the permissions are set like this:

Code: Select all

check_icmp	0	0	r-xr-xr-x
but on my other two servers it's set like this:

Code: Select all

check_icmp	0	0	r-sr-xr-x
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post by nscott »

In that case, I believe it can be duplicated by a

chmod 7555 check_icmp
Nicholas Scott
Former Nagios employee
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post by benhank »

that command changed them to :
r-sr-sr-t no go.

I REALLY appreciate the time you are investing into helping me.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: check_icmp: Failed to obtain ICMP socket: Operation not

Post by benhank »

ITS WORKING! THANK YOU THANK YOU THANK YOU!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked