Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Last active December 21, 2015 14:09
Show Gist options
  • Save mschmitt/6317250 to your computer and use it in GitHub Desktop.
Save mschmitt/6317250 to your computer and use it in GitHub Desktop.
mount | perl -a -n -e '$F[4]!~/^ext\d/&&next;
$F[2]=~/(^\/oracle|sapdata|oraarch|mirrlog|origlog|^\/(|boot|home|tmp|var)$)/&&next;
$F[0]=~s/\/dev\/mapper\/datavg-//;
printf"command[check_disk_%s]=/usr/lib64/nagios/plugins/check_disk -w 25%% -c 20%% -p %s\n",$F[0],$F[2]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment