Skip to content

Comment on Get notified when a periodic task doesn't run

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.