NRPE and remote hosts - problem

Arno Lehmann al at its-lehmann.de
Fri Mar 11 10:22:39 CET 2005


martin wrote:

> Arno Lehmann wrote:
> 
>> Hi.
>>
>> martin wrote:
>> ...
>>
>>> But from console: [root at gucci nagios]# 
>>> /usr/lib/nagios/plugins/check_nrpe -H ipaddress -c check_users
>>> USERS OK - 1 users currently logged in |users=1;5;10;0
>>>
>>> Pls help me, what is wrong?  some permission?
>>
>>
>>
>> Probably. You run nagios as user nagios, I assume, and your console 
>> check is run as root.
>> su to nagios and try it. Then setup sudo or chenge the file 
>> permissions and retry.
>>
>> Arno
>>
>>> Thanks Martin
>>>
>>> Sorry for my English
>>>
>>
> I'm run NAGIOS as user NAGIOS, then run command
> sh-3.00$ /usr/lib/nagios/plugins/check_nrpe -H ipaddress -c check_users
> USERS OK - 0 users currently logged in |users=0;5;10;0

The question is - do you do this check as root user or as nagios user?
try
`su nagios -c /usr/lib/nagios/plugins/check_nrpe -H ipaddress -c 
check_users`
to get results when the check is run as user nagios.

Arno

> However Web interface still not work correctly. /Connection refused by 
> host/  :-(
> Any ideas?
> 
> Thanks
> 
> 

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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