Comment on Get notified when a periodic task doesn't runComments−Cherian13yI run this as a combination of monit timestamp checking and stdout to a file. Is there anything this does that I cannot do this without monit?e.g.MAILTO=email@ops.com1 23 * * * /home/cron/backup.sh 1> /backups/backupand monit doing acheck file backup with path /backups/backupif timestamp > 24 hours then alertThis way I am emailed when there is an error with the backup script, otherwise things continue as it is.
Comments
I run this as a combination of monit timestamp checking and stdout to a file. Is there anything this does that I cannot do this without monit?
e.g.
MAILTO=email@ops.com
1 23 * * * /home/cron/backup.sh 1> /backups/backup
and monit doing a
check file backup with path /backups/backup
if timestamp > 24 hours then alert
This way I am emailed when there is an error with the backup script, otherwise things continue as it is.