* Pod documentation:
<pre>
NAME
checkBackups.pl
DESCRIPTION
This script processes all active backup accounts and checks (according
to the command line options) the quota and/or the scheduled backups for
the given accounts.
The script uses syslog for logging purposes.
Command Line Interface (CLI) parameters:
OPTIONS
--schedule/-s
Checks schedule information by calling the defined script
--quota/-s
Checks the quota values by calling the defined script
--notify/-n
Passes the notify flag to the called scripts
USAGE
./checkBackups.pl [--quota] [--schedule] [--notify]
./checkBackups.pl --quota
Checks and writes the quota for all active backup accounts. The user
and/or reseller will NOT be informed if any quota threshold is
reached
./checkBackups.pl --quota --notify
Checks and writes the quota for all active backup accounts. The user
and/or reseller will be informed if any quota threshold is reached.
./checkBackups.pl --schedule
Checkes all active backup account if the scheduled backup was
executed and successful. The --schedule option will allways trigger
a notification mail to the user and/or reseller.
./checkBackups.pl --schedule --quota
Checks both, quota and schedule, for all active backup accounts.
Only schedule will trigger notification mails.
./checkBackups.pl --schedule --quota --notify
Checks both, quota and schedule, for all active backup accounts.
Both, quota and schedule, will trigger notification mails.
CREATED
2013-09-17 pat.klaey@stepping-stone.ch created
VERSION
2013-09-17 pat.klaey@stepping-stone.ch created
2013-11-19 pat.klaey@stepping-stone.ch Added options to be able to check
quota, schedule or both in one run
INCORPORATED CODE
Incorporated code with use:
warnings;
strict;
Getopt::Long;
Sys::Syslog;
Cwd 'abs_path';
File::Basename;
PerlUtil::LDAPUtil;
PerlUtil::Logging;
</pre>