#!/bin/sh # # Plugin to monitor the number of CVE vulnerabilities present on a Debian # system (using debsecan). Might work on other distib, who knows... # # Inspiration of the moment 10/10/2007 # # Nicolas BOUTHORS http://nbi.fr/ # # Licence : Public Domain # #%# family=auto #%# capabilities=autoconf # Auto enable if we have debsecan only if [ "$1" = "autoconf" ] ; then if [ -x /usr/bin/debsecan ]; then echo yes else echo no fi exit 0 fi # Fail if we don't have debsecan if [ ! -x /usr/bin/debsecan ]; then exit 1 fi if [ "$1" = "config" ] ; then cat < /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.$$` cat <