#!/bin/sh # bare-bones check_onion plugin for nagios # dependencies: torsocks, curl # TODO: handle torsocks SOCKS failures # default thresholds (pretty high, because tor is slow) warn=15 crit=20 while getopts 'H:w:c:' opt do case "$opt" in H) host="$OPTARG";; w) warn="$OPTARG";; c) crit="$OPTARG";; esac done if [ -z "$host" ]; then echo "usage:" $0 "-H [-w