#!/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 > ${OUT} high=`grep -c 'high urgency' ${OUT}` medium=`grep -c 'medium urgency' ${OUT}` low=`grep -c 'low urgency)' ${OUT}` other=`grep -c -v '\(low\|medium\|high\) urgency' ${OUT}` cat <