check_icmp issues warning and does not run
Nguyen, Tham
Tham.Nguyen at nuance.com
Thu May 29 20:35:20 CEST 2008
Hi,
I defined the check_icmp service in my localhost.cfg & commands.cfg
files on the monitoring server and got this warning:
ICMP UNKNOWN 05-29-2008 11:08:33 0d 1h 54m 20s 3/3 Warning:
This plugin must be either run as root or setuid root.
commands.cfg
define command{
command_name check_icmp
command_line $USER1$/check_icmp -w $ARG1$ -c
$ARG2$
}
localhost.cfg
define service{
use generic-service
host_name sun-ae-server001
service_description ICMP
check_command check_nrpe!check_icmp
}
I also checked under /usr/local/nagios/libexec folder and check_icmp is
running under user root. I changed root to nagios user and it produced
the same error.
-rwxrwxrwx 1 root root 85170 May 15 16:26 check_icmp
These 2 commands ran fine:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cf
0 errors
service nagios restart
Any help is really appreciated. Thanks!
Tham N.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080529/2d96b35a/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list