Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_latestfile
This script checks the specified files, extracts the latest file and warns if it's too old. It's good for checking that a backup has been made every day to a certain directory.
Files can be specified with an *, e.g /backup/mysqldump.* or /backup/*.sql
Files can be specified with an *, e.g /backup/mysqldump.* or /backup/*.sql
Reviews (1)
byNiesten, January 27, 2016
Good plugin, does exactly what I need.
Only one thing was needed to be corrected due to issues with -v (debuglevel):
use Getopt::Long;
changed into
use Getopt::Long qw(:config no_ignore_case);
Without this, debuglevel and Version parameters were mixed up.
Only one thing was needed to be corrected due to issues with -v (debuglevel):
use Getopt::Long;
changed into
use Getopt::Long qw(:config no_ignore_case);
Without this, debuglevel and Version parameters were mixed up.