Hi, another idea : in our case, we use a flag file to detect mount failing (file doesn't exist) and remounting nfs share.
BR 2015-08-13 18:04 GMT+02:00 K. Adam Wolfe <[email protected]>: > You would want to use 'directory' instead of 'filesystem' > > *check directory citan-uzuki with path /mnt/citan-uzuki* > * start program = "/bin/mount /mnt/citan-uzuki"* > * stop program = "/bin/umount /mnt/citan-uzuki"* > > On 08/13/2015 11:00 AM, [email protected] wrote: > > Send monit-general mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.nongnu.org/mailman/listinfo/monit-general > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of monit-general digest..." > > > Today's Topics: > > 1. Monit not picking up when usb drive unmounts itself (anon) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 13 Aug 2015 14:47:16 +1000 > From: anon <[email protected]> <[email protected]> > To: [email protected] > Subject: Monit not picking up when usb drive unmounts itself > Message-ID: <[email protected]> <[email protected]> > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > 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 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.nongnu.org/archive/html/monit-general/attachments/20150813/e815d793/attachment.html> > > <http://lists.nongnu.org/archive/html/monit-general/attachments/20150813/e815d793/attachment.html> > > ------------------------------ > > _______________________________________________ > monit-general mailing > [email protected]https://lists.nongnu.org/mailman/listinfo/monit-general > > > End of monit-general Digest, Vol 151, Issue 2 > ********************************************* > > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general > -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?* ------END GEEK CODE BLOCK------
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
