Page 1 of 1

Separating out failed mounts w/ check_nfs_mounts

Posted: Thu Jan 23, 2014 10:42 pm
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...

Re: Separating out failed mounts w/ check_nfs_mounts

Posted: Fri Jan 24, 2014 12:13 pm
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?

Re: Separating out failed mounts w/ check_nfs_mounts

Posted: Fri Jan 24, 2014 2:33 pm
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.

Re: Separating out failed mounts w/ check_nfs_mounts

Posted: Fri Jan 24, 2014 3:22 pm
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?