thank you so much. wouldn't necessarily call them cool. just easy to remember 
what's on the drive. haha

On 14 August 2015 04:53:57 GMT+10:00, Jan-Henrik Haukeland 
<[email protected]> wrote:
>The solution is kind of hidden in the manual [1] (unfortunately), but
>the short answer is, monitor the device not the mount-point, because if
>the disk “unmounts" the mount point will still be there right? 
>
>So you need to figure out which device is behind your (cool)
>mount-point names, 
>
>So instead of 
>
>check filesystem snake-pliskin with path /mnt/snake-pliskin
>     start program = "/bin/mount /mnt/snake-pliskin"
>     stop program = "/bin/umount /mnt/snake-pliskin”
>
>instead use 
>
>check filesystem snake-pliskin with path /dev/some-usb-device
>     start program = "/bin/mount /mnt/snake-pliskin"
>     stop program = "/bin/umount /mnt/snake-pliskin”
>
>
>1.
>https://mmonit.com/monit/documentation/monit.html#THE-MONIT-CONTROL-FILE
>section 4. CHECK FILESYSTEM <unique name> PATH <path>
>
>
>
>> On 13 Aug 2015, at 06:47, anon <[email protected]> wrote:
>> 
>> 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
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
>--
>To unsubscribe:
>https://lists.nongnu.org/mailman/listinfo/monit-general

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to