1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Update plugins/system/debsecan

adjusted patterns to grep
This commit is contained in:
Ben 2012-08-29 14:06:04 +03:00 committed by Steve Schnepp
parent dac093c3b0
commit 2e566be36d

View file

@ -60,10 +60,10 @@ EOF_
fi
debsecan 2> /dev/null > /tmp/debsecan.munin.$$
high=`grep -c '(high urgency)' /tmp/debsecan.munin.$$`
medium=`grep -c '(medium urgency)' /tmp/debsecan.munin.$$`
low=`grep -c '(low urgency)' /tmp/debsecan.munin.$$`
other=`grep -c -v -e '(low urgency)' -e '(medium urgency)' -e '(high urgency)' /tmp/debsecan.munin.$$`
high=`grep -c 'high urgency' /tmp/debsecan.munin.$$`
medium=`grep -c 'medium urgency' /tmp/debsecan.munin.$$`
low=`grep -c 'low urgency)' /tmp/debsecan.munin.$$`
other=`grep -c -v -e 'low urgency' -e 'medium urgency' -e 'high urgency' /tmp/debsecan.munin.$$`
cat <<EOF_
high.value $high
medium.value $medium