As you've not said what system you're wanting to check account expirations on,
it makes it a bit hard to give decent advice.
On a Linux box, about the closest I can think of is to run 'passwd -S <user>'
on every user on a box. This specific command only works for local accounts
however. If in an ldap environment, then you could use ldapsearch to return
each account and their expiry date (with a little creative math and knowing the
policies). A similar method might be usable for an AD environment.
More details, better answers. Give it a shot :)
Stuart
From: Julie [mailto:[email protected]]
Sent: Tuesday, 8 June 2010 03:40
To: Nagios Users List
Subject: [Nagios-users] a test for an expired pw on account?
Hi,
Does anyone know if this exists - a way to test if an account has an expired
password? have an account that requires the PW to be reset periodically, and
need to know a week before it is about to expire so it can be reset before jobs
fail..
thanks
~J~
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null