Separating out failed mounts w/ check_nfs_mounts

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
forrie
Posts: 25
Joined: Tue Nov 22, 2011 6:50 pm

Separating out failed mounts w/ check_nfs_mounts

Post by forrie »

I've been hacking around with some scripting in an effort to solve an irritating problem with the stock check_nfs_mounts.sh script (or that procedure). The problem being when you pass an array of mount points to check, if one of them fails, the entire alert is in error and you don't really know which one has failed.

I'm looking for a more efficient way to work with this. But from what I'm seeing, if I want this result with Nagios, I'm going to have to write a separate check for each mount point, which isn't very efficient for our setup (and would be visually annoying).

Anyone run into this conundrum?


Thanks...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Separating out failed mounts w/ check_nfs_mounts

Post by tmcdonald »

Which check are you referring to? As far as I know we don't have that check in our standard install. Can you post a link?
Former Nagios employee
forrie
Posts: 25
Joined: Tue Nov 22, 2011 6:50 pm

Re: Separating out failed mounts w/ check_nfs_mounts

Post by forrie »

Oops, I think you are right. We have a few systems that are pre-installed here and I didn't happen to take note of that prior to posting.

I don't see any way to accomplish what I need with the current framework. I would have to write a separate check for each /mount/point -- and that's not going to happen, too messy.

Thanks.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Separating out failed mounts w/ check_nfs_mounts

Post by abrist »

There may be a way to add more verbosity to the check output. Can you post a copy of the check_nfs_mounts.sh script here?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked