check_pass_expire.pl

check_pass_expire.pl

Chequea y alerta si un usuario del sistema local tiene la cuenta próxima a expirar.
Usage:
check_pass_expire.pl -u <username> [-w <INTEGER>] [-c <INTEGER>]
check_pass_expire.pl [-h | –help]
check_pass_expire.pl [-V | –version]

Options:
-u, –username
Username to check in /etc/shadow
-w, –warning
Days. Less than this days is Warning
Default Warning value is 10 days
-c, –critical
Days. Less than this days is Critical
Default Critical value is 5 days
-h, –help
Print detailed help screen
-V, –version
Print version information

One thought on “check_pass_expire.pl

  1. Claudio Kuenzler

    Hi, thanks for this plugin. You should consinder the following change so that the plugin works without having a fixed nagios plugins path:

    use strict;
    use Getopt::Long;
    use FindBin;
    use lib $FindBin::Bin;
    use vars qw($PROGNAME);
    use utils qw (%ERRORS &print_revision &support);

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Comment moderation is enabled. Your comment may take some time to appear.