[Nagiosplug-help] check_users reports zero users

Gil Vidals gvidals at gmail.com
Wed Dec 12 17:15:55 CET 2007


The nrpe.cfg file on ns2 has this relevant entry: (this server correctly
reports 1 user logged in)
     command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c
$ARG2$

Now, I stay logged into ns2 (207.158.10.18), and then from the nagios server
I execute the command:
     [root at dev2 nagios]# ./libexec/check_nrpe -H 207.158.10.18 -c
check_users -a 1 1
     USERS OK - 0 users currently logged in |users=0;1;1;0

I'm running running RHEL 4.6 on ns2, and the nagios server is running CentOS
4.5.

How do I go about debugging this situation?

--Gil

On Dec 11, 2007 10:53 PM, Olivier 'Babar' Raginel <nagios at babar.us> wrote:

> On Tue, Dec 11, 2007 at 12:45:29PM -0800, Gil Vidals wrote:
> >         root at ns2 nagios]# ./libexec/check_users -w 1 -c 1
> >         USERS CRITICAL - 1 users currently logged in |users=1;1;1;0
> >    However, running the same command from my nagios server, fails:
> >         [root at dev2 nagios]# ./libexec/check_nrpe -H [1]207.158.10.18 -c
> >    check_users -a 1 1
> >         USERS OK - 0 users currently logged in |users=0;1;1;0
> >    This condition is only happening on two servers out of 30. I
> >    appreciate any guidance in debugging this?
>
> Where is the issue?
> On the first test, you're logged in, so you're the user making the test
> fail. On the second test, I guess you're no longer logged in, thus the
> server is reporting no users are currently logged in, which seems fair
> to me.
> Anyway, having a look at your NRPE configuration might help, but from
> your output, everything looks fine to me.
>
> --
> Babar.
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20071212/70cc4879/attachment.html>


More information about the Help mailing list