check_icmp issues warning and does not run

Marc Powell marc at ena.com
Thu May 29 21:02:49 CEST 2008


On May 29, 2008, at 1:35 PM, Nguyen, Tham wrote:

> 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.
>
>

> 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

Unix 102. Ownership != Run As. While the file may be owned by root,  
when run with the permissions above it takes on the effective ID of  
the user running the program (nagios in this case). You need to setuid  
it to root so that when it is run, it runs with the effective user id  
of root.

http://en.wikipedia.org/wiki/Setuid contains information and the  
symbolic chmod that you need.

--
Marc

-------------------------------------------------------------------------
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/
_______________________________________________
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