+not_exists() {
+ $negate && STATE=$STATE_OK || STATE=$STATE_CRITICAL
+ echo "$(state_name): $1 Does NOT exist"
+}
+
+# parse command line args
+t=$(getopt -o n --long negate -n "$PROGNAME" -- "$@")
+[ $? != 0 ] && exit $?
+eval set -- "$t"
+
+negate=false
+while :; do
+ case "$1" in
+ -n|--negate)
+ negate=true
+ ;;
+ --)
+ shift
+ break
+ ;;
+ *)
+ echo >&2 "$PROGRAM: Internal error: [$1] not recognized!"
+ exit 1
+ ;;
+ esac
+ shift
+done
+
+STATE=$STATE_UNKNOWN
+if [ "$1" = "" ]; then
+ usage
+ exit $STATE
+fi