check_backup_time - NRPE backup completion check

From TykWiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

My backup solution updates the timestamp of the file /tmp/tykbackup_complete_timestamp after a successful backup has been completed. I make NRPE check the age of that file, if it gets more than 25 hours old it throws a warning, more than 50 hours old it goes critical. I add the following to /usr/local/etc/nrpe.cfg:

command[check_backup_time]=/usr/local/libexec/nagios/check_file_age -w 90000 -c 180000 -f /tmp/tykbackup_complete_timestamp