<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Jonathan , lets take this from the top .<br>
<br>
You are trying to test on a remote server the amount of logged in
users - that is done via nrpe .<br>
To test that is working you need to follow 3 major steps <br>
1) make sure NRPE is installed and running on the remote machine .
And accepting connections from the main nagios server *<br>
2) make sure you have the nagios plugins installed on the remote
machine .*<br>
3) make sure the nrpe commands definitions point to the correct
location of the plugins .<br>
<br>
<br>
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 <br>
<br>
"/usr/local/nagios/libexec/check_nrpe -H <host_ip> -c
check_users "<br>
<br>
If every thing is working - you should get the OK or any other
result matching your criteria .<br>
<br>
If you get an error - about can not execute the command - log on to
the remote host and recheck step 3.<br>
<br>
<br>
<br>
<br>
* read relevant documentation on <a class="moz-txt-link-freetext" href="http://www.nagios.org">http://www.nagios.org</a> <br>
<br>
<br>
Assaf<br>
<br>
On 27/09/10 18:37, Jonathan Wiggins wrote:
<blockquote
cite="mid:BCC989FF-285D-4BC5-92C7-7B9C30B504CB@salon.com"
type="cite">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.
<div><br>
</div>
<div>But, on the machine that is missing in the host panel, in
nrpe.cfg there is this definition defined:</div>
<div><b>command[check_users]=/usr/lib64/nagios/plugins/check_users
-w 5 -c 10</b></div>
<div><br>
</div>
<div>However, I can only successfully run that above command on
the Nagios server: </div>
<div><br>
</div>
<div><b>bash-3.1# /usr/local/nagios/libexec/check_users -w 5 -c 10</b></div>
<div><b>USERS OK - 1 users currently logged in |users=1;5;10;0</b></div>
<div><br>
</div>
<div>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.</div>
<div><br>
<div>
<div>On Sep 27, 2010, at 9:11 AM, Assaf Flatto wrote:</div>
<br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
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 (<a class="moz-txt-link-abbreviated" href="http://www.dogstrust.co.uk">www.dogstrust.co.uk</a>) .
Please Sponsor me at <a class="moz-txt-link-freetext" href="http://www.justgiving.com/Assaf-Flatto">http://www.justgiving.com/Assaf-Flatto</a></pre>
</body>
</html>