This is my usual go-to for NFS monitoring: 
https://github.com/echocat/nagios-plugin-check_mountpoints/blob/master/check_mountpoints.sh

Ta,
IR.

From: Help <help-bounces+ian.rarity=espc....@monitoring-plugins.org> On Behalf 
Of Matthew Pounsett
Sent: 17 December 2018 17:19
To: help@monitoring-plugins.org
Subject: Monitoring NFS mounts


Before I start writing code that might be reinventing the wheel... does anyone 
have a favourite method for monitoring the presence of an NFS mount?

check_disk is fine if the NFS volume is mounted and something goes wrong with 
it (like the NFS server going down) but gives a false positive if the volume 
simply isn't mounted.  In that case it gives an OK result based on the closest 
enclosing volume of the mount point.

For example, if I'm using check_disk to monitor an NFS volume mounted at 
/mnt/foo, it will correctly fail if the remote NFS server stops responding, but 
will report success if I 'umount /mnt/foo'.  In that case it'll report OK and 
give the stats for the root ("/") volume.



[http://assets.espc.com/sig/SHA_Finalist.png] 
[http://assets.espc.com/sig/SLA.png]
Private and Confidential: This e-mail transmission is strictly confidential and 
intended solely for the addressee. It may contain privileged and confidential 
information and if you are not the intended recipient, you must not copy, 
disclose, distribute or take any action in reliance on it. If you have received 
this e-mail in error, please delete it and notify our E-mail Systems 
Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not accept any 
liability for any harm that may be caused to the recipient's system or data by 
this message or any attachment.
ESPC (UK) Ltd is a company registered under the Companies Acts in Scotland 
(Registered Number SC203585), and having its registered office at 90A George 
Street, Edinburgh, Midlothian EH2 3DF.
ESPC (UK) Ltd is an Appointed Representative of Lyncombe Consultants Ltd which 
is authorised and regulated by the Financial Conduct Authority.

Reply via email to