Re: how do i monitor Linux User Account Status
Posted: Fri Jun 10, 2016 1:27 pm
the issue is after running the nagios script i am not getting the user account which is having issue
in this place
[/code]
(root@Nagios:~# /home/harshas/check_passwd_expiration
PASSWD_EXPIRATION CRITICAL - , Excluded account(s): [none])
[/code]
i was suppose to get PASSWD_EXPIRATION CRITICAL - harsha, Excluded account(s): [none]) where harsha account is expired
Code: Select all
root@Nagios:~# chage -l harsha
Last password change : password must be changed
Password expires : password must be changed
Password inactive : password must be changed
Account expires : Jun 16, 2016
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
root@Nagios:~# /home/harshas/check_passwd_expiration
PASSWD_EXPIRATION CRITICAL - , Excluded account(s): [none]
root@Nagios:~#
[/code]
(root@Nagios:~# /home/harshas/check_passwd_expiration
PASSWD_EXPIRATION CRITICAL - , Excluded account(s): [none])
[/code]
i was suppose to get PASSWD_EXPIRATION CRITICAL - harsha, Excluded account(s): [none]) where harsha account is expired