For my backup, external disk space is mounted via cronjob as /mnt/backup
on a Ubuntu machine every night. When the backup is complete, the disk is unmounted. No need to expose the backup drive to potential attackers on this webserver.
From time to time, this backup drive runs full, which is ... yep, Linux does not like full disks. So I told monit to alert on low disk space.
check filesystem backup with path /mnt/backup
if space usage > 85% then alert
That works, but whenever the backup is complete and the disk is unmounted, monit goes into "Status: Does not exist" and raises a flag. Is there an option to tell monit not to send any alert, if the filesystem does not exist?
According to the monit manual, each possible action will do something "and send an alert".