[Nagiosplug-help] check_users reports zero users
Andreas Ericsson
ae at op5.se
Thu Dec 13 09:41:17 CET 2007
Gil Vidals wrote:
> The nrpe.cfg file on ns2 has this relevant entry: (this server correctly
> reports 1 user logged in)
When run as root or as whatever account NRPE runs under?
> 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?
>
Make sure you don't have any kernel modules installed that hide logged in
users from non-root accounts. Also make sure the /proc filesystem is readable
by the user NRPE runs as.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
More information about the Help
mailing list