[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Monitor mounts with monit

From: Eric Pailleau
Subject: Re: [monit] Monitor mounts with monit
Date: Tue, 04 Aug 2009 12:21:25 +0200
User-agent: Thunderbird (X11/20090625)

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 

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]