Page 1 of 1

check_users command

Posted: Mon Apr 20, 2015 6:01 pm
by tecnalb
Hello,

I setup a new monitor to a CentOS 6.6 server today. I downloaded the latest agent, and installed. I configured it similar to all other LINUX using the agent for RHEL/CentOS in the past.

When I run the check_user via nrpe, with a -w 1 -c 3, I get a Users OK in XI with 1 user logged into the server.

If I change the -w 1 to 1 -w 0, then it seems to trigger. Whats confusing is that my older servers use the exact same -w 1 -c 3 and they work properly (or the way I think its proper).

So I guess maybe something has changed or my information is wrong....

[root@nagios libexec]# ./check_nrpe -H <IP> -c check_users -a '-w 1 -c 3'
USERS OK - 1 users currently logged in |users=1;1;3;0
[root@nagios libexec]# ./check_nrpe -H <IP> -c check_users -a '-w 0 -c 3'
USERS WARNING - 1 users currently logged in |users=1;0;3;0
[root@nagios libexec]# ./check_nrpe -H <IP> -c check_users -a '-w 0 -c 3'
USERS OK - 0 users currently logged in |users=0;0;3;0
[root@nagios libexec]#

Re: check_users command

Posted: Mon Apr 20, 2015 6:40 pm
by Box293
Yes you are correct, I detected this bug last week and reported it on GitHub:

https://github.com/nagios-plugins/nagio ... /issues/81

Re: check_users command

Posted: Mon Apr 20, 2015 7:56 pm
by tecnalb
Thank you for the confirmation, sir!