:
This module is applied to know if a backup is done. In the backup script you need to create always a fixed link name which point to the latest backup file.
This module get’s the time of a link which points to the lastest backup in the system. When backup its too old (>90,000 is about to be more than 1,1 days), should put itself in CRITICAL, it depends on the user to set the ammount of time from last backup (in seconds) to consider it CRITICAL.
Tested only in Linux.
Module data
module_begin module_name LastBackup_Timestamp module_type generic_data module_exec expr `date +%s` - `ls -la --time-style=+%s /var/backup/lastbackup| awk '{ print $6 }'` module_end
(Visited 570 times, 1 visits today)