warn=1209600
crit=86400
-if [ "$#" != 1 ]; then
- echo "Usage: $0 <certfile>" >&2
+usage() {
+ echo "Usage: $0 [-w seconds] [-c seconds] <certfile>" >&2
exit 3
+}
+
+
+OPTS=`getopt -o w:c: -n "$0" -- "$@"` || usage
+
+eval set -- "$OPTS"
+
+while :; do
+ case "$1" in
+ -w) warn=$2; shift 2 ;;
+ -c) crit=$2; shift 2 ;;
+ --) shift; break; ;;
+ *) usage ;;
+ esac
+done
+if test "$crit" -gt "$warn"; then
+ warn=$crit
+fi
+
+if [ "$#" != 1 ]; then
+ usage
fi
cert="$1"
* dsa-check-zone-rrsig-expiration-many: Initialize exit properly, in case
it does not get set later.
+ [ Helmut Grohne ]
+ * dsa-check-cert-expire: Make timers configurable.
+
[ George Kargiotakis ]
* dsa-check-hpacucli: Add Parity check for logical drives.
[ Stephen Gran ]
* dsa-check-mq-connection: Catch case when host has never connected
- -- Peter Palfrader <weasel@debian.org> Fri, 04 Apr 2014 18:55:33 +0200
+ -- Peter Palfrader <weasel@debian.org> Sat, 26 Apr 2014 12:10:21 +0200
dsa-nagios-checks (99) unstable; urgency=low