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.
Nagios stale mount monitoring for NFS
Re: Nagios stale mount monitoring for NFS
What's the output of a /usr/local/nagios/check_disk -L command?
Former Nagios Employee.
me.
me.
-
- Posts: 176
- Joined: Sat Jun 20, 2015 9:04 pm
Re: Nagios stale mount monitoring for NFS
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.
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
What version of check_disk are you running?
What OS/distro/version are you running this against?
Thank you
Code: Select all
/usr/local/nagios/libexec/check_disk -V
Thank you
-
- Posts: 176
- Joined: Sat Jun 20, 2015 9:04 pm
Re: Nagios stale mount monitoring for NFS
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
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
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
https://exchange.nagios.org/directory/P ... nt/details
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 176
- Joined: Sat Jun 20, 2015 9:04 pm
Re: Nagios stale mount monitoring for NFS
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.
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
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!
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