The nrpe.cfg file on ns2 has this relevant entry: (this server correctly reports 1 user logged in)<br>
command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$<br><br>
Now, I stay logged into ns2 (<a href="http://207.158.10.18">207.158.10.18</a>), and then from the nagios server I execute the command:<br>
[root@dev2 nagios]# ./libexec/check_nrpe -H <a href="http://207.158.10.18">207.158.10.18</a> -c check_users -a 1 1<br>
USERS OK - 0 users currently logged in |users=0;1;1;0<br>
<br>
I'm running running RHEL 4.6 on ns2, and the nagios server is running CentOS 4.5. <br>
<br>
How do I go about debugging this situation?<br>
<br>
--Gil<br><br><div class="gmail_quote">On Dec 11, 2007 10:53 PM, Olivier 'Babar' Raginel <<a href="mailto:nagios@babar.us">nagios@babar.us</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, Dec 11, 2007 at 12:45:29PM -0800, Gil Vidals wrote:<br>> root@ns2 nagios]# ./libexec/check_users -w 1 -c 1<br>> USERS CRITICAL - 1 users currently logged in |users=1;1;1;0
<br>> However, running the same command from my nagios server, fails:<br></div>> [root@dev2 nagios]# ./libexec/check_nrpe -H [1]207.158.10.18 -c<br><div class="Ih2E3d">> check_users -a 1 1<br>> USERS OK - 0 users currently logged in |users=0;1;1;0
<br>> This condition is only happening on two servers out of 30. I<br>> appreciate any guidance in debugging this?<br><br></div>Where is the issue?<br>On the first test, you're logged in, so you're the user making the test
<br>fail. On the second test, I guess you're no longer logged in, thus the<br>server is reporting no users are currently logged in, which seems fair<br>to me.<br>Anyway, having a look at your NRPE configuration might help, but from
<br>your output, everything looks fine to me.<br><br>--<br>Babar.<br><br>-------------------------------------------------------------------------<br>SF.Net email is sponsored by:<br>Check out the new SourceForge.net Marketplace.
<br>It's the best place to buy or sell services for<br>just about anything Open Source.<br><a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>_______________________________________________
<br>Nagiosplug-help mailing list<br><a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>::: Please include plugins version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote>
</div><br>