Roman a écrit :
Hi Eric,

This is not that I really need, I need my mount to stay mounted all
the time, and if it accidentally unmounts or becomes unavailable I
need it remounted back.

Read my lips : "the master map allowing them to be automatically mounted when 
accessed"

automount will mount it when a process whant to access the mount point, so when 
it accidentally
(or due to inactivity) unmount, any access (including monit) will mount the 
mount point.

If a real failure occurs, you should better test presence of a generic file on 
the mountpoint with monit.

check file mount.ref with path /mnt/mymount/.mount.ref
        start = " ... "


Extracted from monit doc :
_______________________________________________________________________________________
# CHECK FILE <unique name> PATH <path>

<path> is the absolute path to the file. If the file does not exist or disappeared, Monit will call the entry's start method if defined, if <path> does not point to a regular file type (for instance a directory), Monit will disable monitoring of this entry. If Monit runs in passive mode or the start methods is not defined, Monit will just send alerts on errors.
________________________________________________________________________________________



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to