<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 28, 2010, at 2:23 AM, Assaf Flatto wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div 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></div></blockquote><br></div><div>Assaf - thanks for your time and patience outlining those steps:</div><div><br></div><div>I was able to at least get the connectivity between Nagios server and the monitored host to show a valid connection:</div><div><br></div><div><div>/usr/local/nagios/libexec/check_nrpe -H 10.0.100.139 -c check_users</div><div>USERS OK - 1 users currently logged in |users=1;5;10;0</div><div><br></div><div>there were a few things wrong on the monitoring server, or at least what I changed:</div><div><br></div><div>* changed ownership of nrpe.cfg to nagios.nagios</div><div>* modified xinetd.d/nrpe to show Nagios server IP as allowed connection</div><div><br></div><div>I struggled with a few other things, and connection attempts, before I realized I hadn't restarted the nrpe service after modifying the xinetd.d/nrpe file.</div><div><br></div><div>I did notice that the plugin location from another server is different than the one that is missing:</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><i><b>/usr/lib64/nagios/plugins</b></i> vs <i>/<b>usr/local/nagios/libexec/</b></i>  (guess this has something to do with the way it was compiled)</div></div><div><br></div><div>Guess I have to wait now a few mins before the host shows in the panel? as its not showing now even after 10 mins.  Restarting xinetd shows this in /var/log/messages:</div><div><br></div><div><b>xinetd[22518]: bind failed (Address already in use (errno = 98)). service = nrpe (</b>is this a bug or anything in xinetd? I saw that referenced on a few other forums)</div><div><br></div><div>nrpe service is running and listening though on 5666</div></div></body></html>