Select Git revision
base64-meta.c
Forked from
Nettle / nettle
Source project has a limited visibility.
-
Niels Möller authored
Rev: src/nettle/ChangeLog:1.58 Rev: src/nettle/NEWS:1.5 Rev: src/nettle/base64-meta.c:1.2 Rev: src/nettle/base64.h:1.2 Rev: src/nettle/sha1.c:1.7 Rev: src/nettle/testsuite/.cvsignore:1.16
Niels Möller authoredRev: src/nettle/ChangeLog:1.58 Rev: src/nettle/NEWS:1.5 Rev: src/nettle/base64-meta.c:1.2 Rev: src/nettle/base64.h:1.2 Rev: src/nettle/sha1.c:1.7 Rev: src/nettle/testsuite/.cvsignore:1.16
check_saned 837 B
#!/bin/sh
#
# usage: check_saned pattern
#
# This script will run "scanimage -L" and grep for the supplied pattern.
#
# FIXME: since scanners in use are not included in the list produced
# by "scanimage -L", the state should be OK if the scanner was seen
# within the last hour, and WARNING if it was seen within the last
# day.
#
# This check script is maintained in a Subversion repository at
# http://lsvn.lysator.liu.se/svnroot/nagios-plugins. Contact
# <ceder@lysator.liu.se> for commit access.
TMPFILE=`tempfile`
scanimage -L > $TMPFILE 2>&1
if [ $? -ne 0 ]
then
echo CRITICAL - scanimage failed - "`cat /tmp/scanimage.$$`"
rm $TMPFILE
exit 2
fi
grep "$1" $TMPFILE >/dev/null 2>&1
RC=$?
if [ $RC -ne 0 ]
then
echo CRITICAL - scanner not found
rm $TMPFILE
exit 2
fi
rm $TMPFILE
echo OK - all fine
exit 0