<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Matthew,</div><div><br></div><div>I'm using check_snmp on OID: HOST-RESOURCES-MIB::hrFSRemoteMountPoint</div><div><br></div><div>You will get an output, like this: </div><div><div>HOST-RESOURCES-MIB::hrFSRemoteMountPoint.29 = STRING: "10.224.6.25:/data/nfs/cp_backup"</div></div><div><br></div>The related check_snmp command would look like this: </div><div dir="ltr">-o HOST-RESOURCES-MIB::hrFSRemoteMountPoint.29 -s '"10.224.6.25:/data/nfs/cp_backup"'</div><div dir="ltr"><br></div><div dir="ltr">If you combine this and check_disk via check_multi, you should get an accurate result.</div><div dir="ltr"><br></div><div dir="ltr">Be aware, that the hrFSRemoteMountPoint.N may change during a reboot, but you could also different script to get all RemoteMountPoints and search for the desired one.</div><div dir="ltr"><br></div><div dir="ltr">Regards<br>Oliver</div><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">Am Mo., 17. Dez. 2018, 18:18 hat Matthew Pounsett <<a href="mailto:matt@conundrum.com" target="_blank">matt@conundrum.com</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div>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? </div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div><br></div></div>
</blockquote></div>
</div></div></div></div></div>