My backup server boots up at 3 every night, runs the backup script and shuts down. This did not work for some time and I was not warned about it.
The solution for this problem:
- Let the backup server touch a file on the home server before shutting down
- Have Munin monitor the file change date and warn if it is too old.
I use the disk/file_age plugin available in the munin-contrib repository. To put it into a separate section, I added support for the host_name configuration to the plugin.
Configuration
/etc/munin/plugin-conf.d/backup_file_age
[backup_file_age] env.host_name backup env.file1_path /var/lib/munin/last-touch/baup-backup env.file1_label Last baup backup env.file1_warning 172800 env.file1_critical 604800