Ping check is failing
Ping check is failing
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
Ping check is failing..Can you let me know how do i get this working?
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
Ping check is failing..Can you let me know how do i get this working?
Re: Ping check is failing
This is most likely a permissions issue. Can you verify the permissions on the "check_icmp" plugin, and correct them if necessary?
The same issue and a solution to the problem are described in the forum post below:
https://support.nagios.com/forum/viewto ... 28&p=30738
Let us know if this helped. Thank you!
The same issue and a solution to the problem are described in the forum post below:
https://support.nagios.com/forum/viewto ... 28&p=30738
Let us know if this helped. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Ping check is failing
I changed the permission as listed in the link you sent:
The permissions are changed to:
r-sr-sr-t
Howerver it still does not work
The permissions are changed to:
r-sr-sr-t
Howerver it still does not work
Re: Ping check is failing
Hello, This issue still persists. I don't know what i am missing.Can you please help me?
Re: Ping check is failing
I also get this:
Warning: This plugin must be either run as root or setuid root.
Warning: This plugin must be either run as root or setuid root.
Re: Ping check is failing
These are the correct permissions (from a clean install of Nagios XI):
Make sure that your permissions are the same, then test running the plugin from the CLI, for example:
Did this help?
Code: Select all
ls -la /usr/local/nagios/libexec/check_icmp
-rwsrwxr-x 1 root nagios 191923 Jul 2 00:34 /usr/local/nagios/libexec/check_icmpCode: Select all
/usr/local/nagios/libexec/check_icmp -VBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Ping check is failing
[nagios@nagios3 libexec]$ ls -la /usr/local/nagios/libexec/check_icmp
-r-xr-xr-t. 1 root nagios 182123 Apr 9 2016 /usr/local/nagios/libexec/check_icmp
[nagios@nagios3 libexec]$ /usr/local/nagios/libexec/check_icmp -V
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 v2.0.3 (nagios-plugins 2.0.3)
[nagios@nagios3 libexec]$
Nope its says u need to sun as root
-r-xr-xr-t. 1 root nagios 182123 Apr 9 2016 /usr/local/nagios/libexec/check_icmp
[nagios@nagios3 libexec]$ /usr/local/nagios/libexec/check_icmp -V
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 v2.0.3 (nagios-plugins 2.0.3)
[nagios@nagios3 libexec]$
Nope its says u need to sun as root
Re: Ping check is failing
Your permissions are NOT the same as the ones I showed you. I would recommend running the command above (outlined in red) in order to fix your problem.[nagios@nagios3 libexec]$ ls -la /usr/local/nagios/libexec/check_icmp
-r-xr-xr-t. 1 root nagios 182123 Apr 9 2016 /usr/local/nagios/libexec/check_icmp
[nagios@nagios3 libexec]$ /usr/local/nagios/libexec/check_icmp -V
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 v2.0.3 (nagios-plugins 2.0.3)
[nagios@nagios3 libexec]$
Example:
Code: Select all
chmod u+s /usr/local/nagios/libexec/check_icmpBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Ping check is failing
[nagios@nagios3 libexec]$ sudo chmod 775 check_icmp
[nagios@nagios3 libexec]$ /usr/local/nagios/libexec/check_icmp -V
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 v2.0.3 (nagios-plugins 2.0.3)
[nagios@nagios3 libexec]$ ls -la /usr/local/nagios/libexec/check_icmp
-rwxrwxr-x. 1 root nagios 182123 Apr 9 2016 /usr/local/nagios/libexec/check_icmp
[nagios@nagios3 libexec]$ /usr/local/nagios/libexec/check_icmp -V
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 v2.0.3 (nagios-plugins 2.0.3)
[nagios@nagios3 libexec]$ ls -la /usr/local/nagios/libexec/check_icmp
-rwxrwxr-x. 1 root nagios 182123 Apr 9 2016 /usr/local/nagios/libexec/check_icmp
Re: Ping check is failing
sorry! Checking on that