Page 1 of 1

How to check for hanging NFS mount

Posted: Wed Oct 21, 2020 11:14 pm
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

Re: How to check for hanging NFS mount

Posted: Thu Oct 22, 2020 4:30 pm
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