Separating out failed mounts w/ check_nfs_mounts
Posted: Thu Jan 23, 2014 10:42 pm
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...
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...