I saw that you had issues changing to the nagios user account and it could be that it has a password assigned to it or that it is expired.
Login as root and run the following to remove the password and reset the account.
[root@lxelkapp] 10:50 # chage -l nagios
Last password change : Aug 04, 2014
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
[root@lxelkapp] 10:50 # grep nag /etc/passwd
nagios:x:496:491::/var/spool/nagios:/sbin/nologin
[root@lxelkapp] 10:50 # grep nag /etc/group
nagios:x:491:nagios
nagcmd:x:10668:nagios
[root@lxelkapp] 10:50 # ls -l /usr/local/nagios/libexec/check_users
-rwxr-xr-x 1 root nagios 136185 May 30 08:12 /usr/local/nagios/libexec/check_users
[root@lxelkapp] 10:50 # uname -a
Linux lxelkapp.tecsys.us 2.6.32-431.23.3.el6.x86_64 #1 SMP Wed Jul 16 06:12:23 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@lxelkapp] 10:50 # cat /etc/*release*
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Red Hat Enterprise Linux Server release 6.5 (Santiago)
cpe:/o:redhat:enterprise_linux:6server:ga:server
[root@lxelkapp] 10:51 #
Save the file and see if the check_users plugin functions.
This will give the nagios user account back the ability to login and run the plugins on the server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Save the file and see if the check_users plugin functions.
This will give the nagios user account back the ability to login and run the plugins on the server.
tgriep wrote:Try and upgrade the plugins in the remote server by following this KB article and see if that resolves the issue for you. https://support.nagios.com/kb/article/n ... ource.html
Let us know if it works for you.
I installed the plugins manually as was described in article, but the issue steel.
I was hoping that would fix it.
The check_users command does the same functionality as the users command and not the who command.
Can you login to that server, run the following and post the output?