Page 1 of 1

Nagios stale mount monitoring for NFS

Posted: Wed Apr 06, 2016 2:46 am
by yunushaikh
Hello,

I have seen an option for monitoring NFS mount using check_disk -L but cannot find how to use it.
Can we monitor stale mount for NFS through NRPE.

Please suggest,
Thanks,
Yunus Shaikh.

Re: Nagios stale mount monitoring for NFS

Posted: Wed Apr 06, 2016 1:02 pm
by hsmith
What's the output of a /usr/local/nagios/check_disk -L command?

Re: Nagios stale mount monitoring for NFS

Posted: Tue May 24, 2016 2:36 am
by yunushaikh
Hey,
First of all really sorry for the late reply. I was stuck in the project.
When I do check_disk -L it does not check the NFS mounted partition. It only checks the local disk.

I want to check stale file handle error.

Re: Nagios stale mount monitoring for NFS

Posted: Tue May 24, 2016 3:40 pm
by ssax
What version of check_disk are you running?

Code: Select all

/usr/local/nagios/libexec/check_disk -V
What OS/distro/version are you running this against?


Thank you

Re: Nagios stale mount monitoring for NFS

Posted: Fri Jun 03, 2016 12:30 am
by yunushaikh
Hello Sir,

Below are the information you require.

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

OS is centos 6.7

Re: Nagios stale mount monitoring for NFS

Posted: Fri Jun 03, 2016 2:24 pm
by tgriep
If you are looking for Stale File Handles, take a look at this plugin to see if this would work for you.
https://exchange.nagios.org/directory/P ... nt/details

Re: Nagios stale mount monitoring for NFS

Posted: Wed Jun 08, 2016 2:54 am
by yunushaikh
Hello Sir,

Thanks for your suggesstion.
Can you help me how can I set command using this plugin. There is no help written in this plugin.
It will be very helpful for me.

Re: Nagios stale mount monitoring for NFS

Posted: Wed Jun 08, 2016 12:12 pm
by rkennedy
You will need to upload it to your plugin directory, usually /usr/local/nagios/libexec/, then assign it the correct permissions with chown, and finally make the perl file executable with chmod. You should then be able to run ./check_nfs_client

Now in your commands file add a new definition for it, and reference the file you just uploaded. Assign this command to a service, and you've now got a new check running!