diff --git a/rules/gentoo/nrpe-host-auto.sh b/rules/gentoo/nrpe-host-auto.sh index 798f5e0e7cef6e6da05d36753eb16981d49fba28..76cceb3c273f8c7229577da876e4f04935e11ab9 100644 --- a/rules/gentoo/nrpe-host-auto.sh +++ b/rules/gentoo/nrpe-host-auto.sh @@ -3,15 +3,16 @@ trap "rm -f $FILESYSTEMS" 0 > $prefix/etc/nrpe-host-auto.cfg awk < /etc/fstab \ - '! ($1 ~ /\//) { next } + '! ($1 ~ /\// || $1 ~ /LABEL=/) { next } $1 ~ /^#/ { next } $3 == "swap" || $3 == "nfs" { next } $4 ~ /noauto/ { next } + $1 ~ /LABEL=/ { print $2, $2; next } { print $1, $2 }' \ | while read dev mp do mpdash=`echo $mp | sed -e 's%^/$%/root%' -e 's%/%-%g'` - echo "command[check-disk$mpdash]=/usr/nagios/libexec/check_disk $dev" \ + echo "command[check-disk$mpdash]=/usr/nagios/libexec/check_disk -w 10% -c 5% $dev" \ >> $prefix/etc/nrpe-host-auto.cfg echo $mp done > $FILESYSTEMS