monitoring nfs with monit

Posted by Josh Nankin on Server Fault See other posts from Server Fault or by Josh Nankin
Published on 2011-08-22T16:19:06Z Indexed on 2012/06/06 10:43 UTC
Read the original article Hit count: 388

Filed under:
|
|
|

I'd like to monitor NFS mounts and the NFS server process using Monit.

On the server, I'd need a PID file, but I can't seem to find a way of getting that created with existing configuration files. Is there a way to do this, or has anyone monitored the server in a different way (checking if port 53 is active, etc).

On clients, I was thinking of making Monit simply look for a specific file in an NFS mount, and if it's accessible, all is well. Problem is, if the NFS server does go down, file requests usually hang (perhaps even indefinitely, not sure). How would one get around this issue with monit?

Any configuration examples would be greatly appreciated!

© Server Fault or respective owner

Related posts about nfs

Related posts about monit