Skip to content
Snippets Groups Projects
Select Git revision
  • aba7c1206f7e79f81c5d4931b8a10bea1e02a4e5
  • master default
  • support_pre_UAL_arm_asm
  • skein
  • rsa-crt-hardening
  • chacha96
  • fat-library
  • versioned-symbols
  • curve25519
  • dsa-reorg
  • aead-api
  • set_key-changes
  • poly1305
  • aes-reorg
  • nettle-2.7-fixes
  • size_t-changes
  • ecc-support
  • experimental-20050201
  • lsh-1.4.2
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
  • converted-master-branch-to-git
  • nettle_2.4_release_20110903
  • nettle_2.3_release_20110902
  • nettle_2.2_release_20110711
  • nettle_2.1_release_20100725
  • camellia_32bit_20100720
  • nettle_2.0_release_20090608
  • nettle_1.15_release_20061128
39 results

hmac.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    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