Check backup time - NRPE backup completion check: Difference between revisions
From TykWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:check_backup_time - NRPE backup completion check}} | {{DISPLAYTITLE:check_backup_time - NRPE backup completion check}} | ||
[[category:nagios]] | [[category:nagios]] | ||
My backup solution updates the timestamp of the file <code>/ | [[category:TykBackup]] | ||
My backup solution updates the timestamp of the file <code>/tmp/tykbackup_complete_timestamp</code> 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 <code>/usr/local/etc/nrpe.cfg</code>: | |||
<pre> | <pre> | ||
command[check_backup_time]=/usr/local/libexec/nagios/check_file_age -w 90000 -c 180000 -f / | command[check_backup_time]=/usr/local/libexec/nagios/check_file_age -w 90000 -c 180000 -f /tmp/tykbackup_complete_timestamp | ||
</pre> | </pre> |
Latest revision as of 22:32, 13 December 2010
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