Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Had to modify the script as shown below so that it wouldn’t alarm if one mount was a subset of another (e.g. /mnt/foo and /mnt/foo_new would alarm, saying “/mnt/foo is mounted several times (2)”
Old line 107: MOUNTED=`mount | grep $MOUNT | grep $FS | wc -l | tr -s ” “` # execute the command to check the mount…
New line 107: MOUNTED=`mount | grep “$MOUNT” | grep ” $FS ” | wc -l | tr -s ” “` # execute the command to check the mount…