Hello Alex, Thank you for your reply, does your check mount the system if it accidentally unmounts or isn't accessible anymore?
2009/8/3 Alex Soto <[email protected]>: > 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: > >> Hello, >> >> 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 >> Romania >> >> email: [email protected] >> skype: roman.doroschevici >> mobile: +40 / 745/ 560 332 >> fax: +40 / 256 / 407 147 >> www.epoint.ro >> >> "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: >> http://lists.nongnu.org/mailman/listinfo/monit-general > > > > -- > To unsubscribe: > http://lists.nongnu.org/mailman/listinfo/monit-general > -- -- regards, mit freundlichen Grüßen, cu stima, Roman Doroschevici System Administrator ______________________________ epoint - the technology partner Vacarescu 7 300182 Timisoara Romania email: [email protected] skype: roman.doroschevici mobile: +40 / 745/ 560 332 fax: +40 / 256 / 407 147 www.epoint.ro "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: http://lists.nongnu.org/mailman/listinfo/monit-general
