Hi Monit mailing list,
I have several external hdd enclosures that sometimes like to
unmount themselves for no apparent reason. I installed Monit to
overcome this issue and so it could monitor and remount without me
having to do it. Unfortunately Monit doesn't seem to pick that the
drives unmounted. Here is what I have in the monitrc file.
check
filesystem citan-uzuki with path /mnt/citan-uzuki
start program
= "/bin/mount /mnt/citan-uzuki"
stop program
= "/bin/umount /mnt/citan-uzuki"
check filesystem
hideo-kojima with path /mnt/hideo-kojima
start program
= "/bin/mount /mnt/hideo-kojima"
stop program
= "/bin/umount /mnt/hideo-kojima"
check filesystem
snake-pliskin with path /mnt/snake-pliskin
start program
= "/bin/mount /mnt/snake-pliskin"
stop program
= "/bin/umount /mnt/snake-pliskin"
check filesystem
holder with path /mnt/holder
start program
= "/bin/mount /mnt/holder"
stop program
= "/bin/umount /mnt/holder"
check filesystem
lucas-hood with path /mnt/lucas-hood
start program
= "/bin/mount /mnt/lucas-hood"
stop program
= "/bin/umount /mnt/lucas-hood"
check filesystem
mr-robot with path /mnt/mr-robot
start program
= "/bin/mount /mnt/mr-robot"
stop program
= "/bin/umount /mnt/mr-robot
Any ideas?
Regards,
Dean
|