Every once in a while (mainly when our NAS is upgraded or patched, ~2x/year) we have some mounts that hang. The only way we find out is running a script during the upgrade that does a df -h, which doesn't come back so we know which server to fix.
Is there a way to essentially check a NAS mount via df -h? I tried the NFS wizard and that doesn't work for this. I also tried some plugins from the exchange with no luck.
Running Red Hat 8, Nagios XI 2024R1.2.1
Thanks.
Hung NFS mounts
Re: Hung NFS mounts
Hi @kbauma01,
I don't believe we have a wizard that does exactly what you're looking for here. If you can't find anything on exchange but you already have a script you run to accomplish this, my next suggestion would be to turn a version of your script into a Nagios Plugin and use that! I've included a link to our plugin development guidelines below:
https://nagios-plugins.org/doc/guidelines.html
I don't believe we have a wizard that does exactly what you're looking for here. If you can't find anything on exchange but you already have a script you run to accomplish this, my next suggestion would be to turn a version of your script into a Nagios Plugin and use that! I've included a link to our plugin development guidelines below:
https://nagios-plugins.org/doc/guidelines.html
Re: Hung NFS mounts
Like jsimon mentioned you will need to create a plugin to do so but since you already have a script to check this, it shouldn't be too complicated to turn it into a plugin that will work. After you have the plugin you should be able to deploy it on the servers with the NAS's and then run the plugin via an agent. To link it to your XI you can make a service and give it the check to get the information from the agent.