Thanks Martin. That what I ended up doing, but I wanted to see what my other options were.
Thanks for getting back to me so quickly. Dave -----Original Message----- From: Martin Pala <[EMAIL PROTECTED]> Reply-To: This is the general mailing list for monit <[email protected]> To: This is the general mailing list for monit <[email protected]> Subject: Re: [monit] SMB Mount monitoring Date: Wed, 07 Nov 2007 21:58:56 +0100 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. Martin 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. > > Thanks, > Dave > > > ------------------------------------------------------------------------ > > -- > To unsubscribe: > http://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general Dave Keeton Systems Programmer Enterprise Systems Oregon State Data Center (503) 373-0832 email: [EMAIL PROTECTED]
-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
