Can you also share how check_users is defined remotely? It would be in file nrpe.cfg or one of it's include files. Please post them as as there could be overlaps.
avandemore wrote:Can you also share how check_users is defined remotely? It would be in file nrpe.cfg or one of it's include files. Please post them as as there could be overlaps.
There has been some changes to the check_users plugin for the last few releases, what version are you running on the remote server?
Can you login to that server, run the following and post the output?
tgriep wrote:There has been some changes to the check_users plugin for the last few releases, what version are you running on the remote server?
Can you login to that server, run the following and post the output?
Using username "ctretelea".
Last login: Wed May 31 06:23:10 2017 from 10.237.60.113
[user@lxelkapp] 14:17 $ /usr/local/nagios/libexec/check_users -V
check_users v2.0.3 (nagios-plugins 2.0.3)
[user@lxelkapp] 14:17 $ /usr/local/nagios/libexec/check_users -w 5 -c 10
USERS CRITICAL - 256 users currently logged in |users=256;5;10;0
[user@lxelkapp] 14:18 $ su nagios
Password:
su: incorrect password
[user@lxelkapp] 14:18 $ sudo su
[sudo] password for user:
[root@lxelkapp] 14:18 # /usr/local/nagios/libexec/check_users -w 5 -c 10
USERS CRITICAL - 256 users currently logged in |users=256;5;10;0
[root@lxelkapp] 14:18 # su - nagios
This account is currently not available.
[root@lxelkapp] 14:19 # su nagios
This account is currently not available.
[root@lxelkapp] 14:19 # idnagios
bash: idnagios: command not found
[root@lxelkapp] 14:20 # id nagios
uid=496(nagios) gid=491(nagios) groups=491(nagios),10668(nagcmd)