check_icmp issues warning and does not run

Nguyen, Tham Tham.Nguyen at nuance.com
Thu May 29 23:24:17 CEST 2008


Okay the problem is solved.

 

Before I had this in the localhost.cfg:

 

define service{

use                                           generic-service

host_name                                sun-ae-server001

service_description                     ICMP

check_command                       check_nrpe!check_icmp

}

 

Changed this line check_nrpe!check_icmp to check_icmp and it worked fine.

 

The setuid bit works though; just the config file is not set properly.  The error message (Warning: This plugin must be either run as root or setuid root ) is ambiguous!!!

 

________________________________

From: Nguyen, Tham 
Sent: Thursday, May 29, 2008 1:54 PM
To: 'Mathieu Gagné'
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] check_icmp issues warning and does not run

 

 

Thanks Mathieu for your response.  However, after changing the setuid bit, I am still receiving the same error message (chmod u+s check_icmp).

 

-rwsrwxrwx 1 root   root    85170 May 15 16:26 check_icmp

 

 

ICMP   UNKNOWN   05-29-2008 13:42:24   0d 0h 22m 58s   3/3   Warning: This plugin must be either run as root or setuid root. 

 

 

-----Original Message-----
From: Mathieu Gagné [mailto:mgagne at iweb.com] 
Sent: Thursday, May 29, 2008 11:59 AM
To: Nguyen, Tham
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] check_icmp issues warning and does not run

 

Nguyen, Tham wrote:

> 

> 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

> 

 

This file is OWNED by "root", not RUN as "root".

Your Nagios process is probably running as "nagios". Therefore 

"check_icmp" is run as "nagios", not "root" by the Nagios process.

 

My understanding is that you should change the file's permission and set 

the "setuid bit" in order to allow "nagios" to run this file as "root".

 

--

Mathieu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080529/92381e3e/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