can't get host to display in Host Detail panel

Assaf Flatto nagios at flatto.net
Tue Sep 28 11:23:03 CEST 2010


  Jonathan , lets take this from the top .

You are trying to test on a remote server the amount of logged in users 
- that is done via nrpe .
To test that is working you need to follow 3 major steps
1) make sure NRPE is installed and running on the remote machine . And 
accepting connections from the main nagios server *
2) make sure you have the nagios plugins installed on the remote machine .*
3) make sure the nrpe commands definitions point to the correct location 
of the plugins .


once you followed the first 2 steps , you can test to see if the nrpe 
works by issuing the following  command on the nagios server

"/usr/local/nagios/libexec/check_nrpe -H <host_ip> -c check_users "

If every thing is working - you should get the OK or any other result 
matching your criteria .

If you get an error - about can not execute the command - log on to the 
remote host and recheck step 3.




* read relevant documentation on http://www.nagios.org


Assaf

On 27/09/10 18:37, Jonathan Wiggins wrote:
> on the Nagios server, I didn't see the event handler, "check_users", I 
> only saw a "check_local_users" in the commands.cfg file. Perhaps 
> that's incorrect.
>
> But, on the machine that is missing in the host panel, in nrpe.cfg 
> there is this definition defined:
> *command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10*
>
> However, I can only successfully run that above command on the Nagios 
> server:
>
> *bash-3.1# /usr/local/nagios/libexec/check_users -w 5 -c 10*
> *USERS OK - 1 users currently logged in |users=1;5;10;0*
>
> Sorry for my confusion, am I to run that event handler against the 
> missing host, or on the Nagios server.   It only works from the Nagios 
> server, as that's where the plugins are located.
>
> On Sep 27, 2010, at 9:11 AM, Assaf Flatto wrote:
>

-- 
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100928/9ac9c756/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
-------------- 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