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
We run tons of nfs mounts across many machines and those mounts sometimes change based on needs so I made a slight modification to avoid the need to keep track of the mountpoints to provide as args. Especially since it’s likely no one will tell me beforehand.
Before the while case loop I did:
MPS=`grep nfs /etc/fstab | grep -v ‘^#’ | awk ‘{print $2}’ | tr ‘n’ ‘ ‘`
then commented out the /*MPS line in the case block.