check_users command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tecnalb
Posts: 133
Joined: Tue May 03, 2011 12:53 pm

check_users command

Post 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]#
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_users command

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tecnalb
Posts: 133
Joined: Tue May 03, 2011 12:53 pm

Re: check_users command

Post by tecnalb »

Thank you for the confirmation, sir!
Locked