How to check for hanging NFS mount

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
genna
Posts: 34
Joined: Mon Aug 14, 2017 8:10 pm

How to check for hanging NFS mount

Post by genna »

Hi
We have a situations in our environment when a we have NFS mount hung . This usually caused by NFS VM rebooting. We want to be able to check this condition in Nagios.
I have tried to replicate this scenario in my test environment by blocking outbound access to NFS host using iptable rules.
I have run check_disk plugin with timeout set, but it just hangs and not timing out. I was wondering if there is a better way to check - a plugin that would return "Critical" if timed out is reached , not just hang
check_disk version is:

./check_disk -V
check_disk v2.0.3 (nagios-plugins 2.0.3)

Regards,
Genna
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to check for hanging NFS mount

Post by cdienger »

You may have better luck setting up a check to see if a file(that should always exist) exists on the NFS mount and return a critical if the file is unreadable.

https://support.nagios.com/kb/article/f ... der_exists
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked