Nagios stale mount monitoring for NFS

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Nagios stale mount monitoring for NFS

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios stale mount monitoring for NFS

Post by hsmith »

What's the output of a /usr/local/nagios/check_disk -L command?
Former Nagios Employee.
me.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Nagios stale mount monitoring for NFS

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios stale mount monitoring for NFS

Post 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
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Nagios stale mount monitoring for NFS

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios stale mount monitoring for NFS

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Nagios stale mount monitoring for NFS

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios stale mount monitoring for NFS

Post 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!
Former Nagios Employee
Locked