[Top][All Lists]

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

Re: [monit] Monitor mounts with monit

From: Alex Soto
Subject: Re: [monit] Monitor mounts with monit
Date: Mon, 3 Aug 2009 12:24:40 -0700

I did see an interesting response about monitoring a file. Check the archives.

Here's an example of something I've done. It makes sure that the mount point exists then mounts the device.

check device dbfs with path /dev/sdh
start program = "/bin/bash -c 'mkdir -p /data/db ; sleep 1 ; mount /data/db'"

On Aug 3, 2009, at 1:16 AM, Roman wrote:


I asked a little earlier the same question but didn't get any luck
with my monitoring of mounted devices. I have an external hard drive
/dev/sdd1 it is mounted in the directory /home/backup, I want to
monitor in case it is unmounted to automatically mount it back. I
think the starting point is like this:

check device external with path /dev/sdd1
   start = "/bin/mount /dev/sdd1"
   stop = "/bin/umount /dev/sdd1"

what condition to I need to add so it will remount in case the
resource is not available anymore?

Thank you.

regards, mit freundlichen Grüßen, cu stima,
Roman Doroschevici

System Administrator

epoint -  the technology partner

Vacarescu 7
300182 Timisoara

email: address@hidden
skype: roman.doroschevici
mobile: +40 / 745/ 560 332
fax: +40 / 256 / 407 147

"reliable solutions. delivered."

This message and any attached files are confidential and intended
solely for the addressee(s). Any publication, transmission or other
use of the information by a person or entity other than the intended
addressee is prohibited. If you receive this in error please contact
the sender and delete the material. The sender does not accept
liability for any errors or omissions as a result of the transmission.

To unsubscribe:

reply via email to

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