[Top][All Lists]

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

Re: [monit] SMB Mount monitoring

From: Martin Pala
Subject: Re: [monit] SMB Mount monitoring
Date: Wed, 07 Nov 2007 21:58:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070802 Iceape/1.1.4 (Debian-1.1.4-1)

You can try to check the file which can be stored on he share - for example if the share is mounted on "/mnt/windows" then you can create hidden file "/mnt/windows/.monittest$" and use "check file ..." test. If the file won't exist, the share is not available.


Dave Keeton wrote:
I'm trying to wrap my head around the best way to monitor a remote SMB share that's mounted locally on a Linux box. Checking the directory doesn't appear to work, since the mount point will always be there. Any suggestions on how to verify that the mount is valid? I need to be able to have monit re-mount the share if it disappears for some reason. The SMB server is flaky, so it can be a hassle to get Linux to unmount the share and remount it when the connection is broken.



To unsubscribe:

reply via email to

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