how do i monitor Linux User Account Status
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
how do i monitor Linux User Account Status
hi All,
is there any Way to monitor Linux Users status (Locked/Active, password Exp Etc,.) details using nagios
Regards,
Aryan
is there any Way to monitor Linux Users status (Locked/Active, password Exp Etc,.) details using nagios
Regards,
Aryan
Regards,
Harsha
Harsha
Re: how do i monitor Linux User Account Status
Try this one out: https://exchange.nagios.org/directory/P ... on/details
Former Nagios Employee.
me.
me.
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: how do i monitor Linux User Account Status
Hi That plugin is really awesome but i am not getting which user is critical
Output is pasting below, please let me know if i have to do any changes.
./check_passwd_expiration
PASSWD_EXPIRATION CRITICAL - , Excluded account(s): [none]
i am not getting the user names which are expired
Output is pasting below, please let me know if i have to do any changes.
./check_passwd_expiration
PASSWD_EXPIRATION CRITICAL - , Excluded account(s): [none]
i am not getting the user names which are expired
Regards,
Harsha
Harsha
Re: how do i monitor Linux User Account Status
Did you add the following lines to sudoers?
Run the following command and show the output:
The plugin seems to be working fine for me.
The username (tom) is shown.
Code: Select all
User_Alias NAGIOS = nagios
NAGIOS ALL = NOPASSWD: /usr/bin/chage -l *
Defaults:NAGIOS !requirettyCode: Select all
chage -l <user with expiring password>Code: Select all
[root@192 libexec]# chage -l tom
Last password change : Jun 09, 2016
Password expires : Jun 10, 2016
Password inactive : never
Account expires : Jun 10, 2016
Minimum number of days between password change : 0
Maximum number of days between password change : 1
Number of days of warning before password expires : 7Code: Select all
[root@192 libexec]# ./check_passwod_expiration
PASSWOD_EXPIRATION CRITICAL - Exp < 4j:[tom], Excluded account(s): [none]Be sure to check out our Knowledgebase for helpful articles and solutions!
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: how do i monitor Linux User Account Status
Hi,
Please find the output below
i am using Ubuntu 14.04.3
Please find the output below
i am using Ubuntu 14.04.3
Code: Select all
root@Nagios:/home/harshas# chage -l harsha
Last password change : password must be changed
Password expires : password must be changed
Password inactive : password must be changed
Account expires : never
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:/home/harshas#
Regards,
Harsha
Harsha
Re: how do i monitor Linux User Account Status
You have:
Test the plugin again:
What happens if you set your user to expire (for example) in a week?Account expires : never
Code: Select all
chage -E "2016-06-16" harshaCode: Select all
./check_passwd_expirationBe sure to check out our Knowledgebase for helpful articles and solutions!
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: how do i monitor Linux User Account Status
Can you show us the full output of this? chage -l harsha
Former Nagios Employee
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: how do i monitor Linux User Account Status
Please find the output below
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
Regards,
Harsha
Harsha
Re: how do i monitor Linux User Account Status
Ask the user to log in and change the password. In comparison, I have:Last password change : password must be changed
Password expires : password must be changed
Password inactive : password must be changed
Last password change : Jun 09, 2016
Password expires : Jun 10, 2016
Password inactive : never
Be sure to check out our Knowledgebase for helpful articles and solutions!