projects
/
shutils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68e2469
)
check_rdns: minor update
author
Stefan Huber <shuber@sthu.org>
Thu, 7 Nov 2013 20:57:48 +0000
(21:57 +0100)
committer
Stefan Huber <shuber@sthu.org>
Thu, 7 Nov 2013 20:57:48 +0000
(21:57 +0100)
nagios/plugins/check_rdns
patch
|
blob
|
history
diff --git
a/nagios/plugins/check_rdns
b/nagios/plugins/check_rdns
index 9649dd278faae9e8cb003c92839811876ff74918..90a8ce6abe9e2dc6db6a4288618fa34f4d643f59 100755
(executable)
--- a/
nagios/plugins/check_rdns
+++ b/
nagios/plugins/check_rdns
@@
-52,7
+52,7
@@
EOF
}
-TEMP=`getopt -o "H:a:c:hs:t:w:V" --long "help,address:,expect:,critical:,server:,timeout:,warning:,version" -n "$
0
" -- "$@"`
+TEMP=`getopt -o "H:a:c:hs:t:w:V" --long "help,address:,expect:,critical:,server:,timeout:,warning:,version" -n "$
PROGNAME
" -- "$@"`
eval set - "$TEMP"
ADDRESS=
@@
-82,7
+82,10
@@
while true; do
WARNING="$2"; shift 2 ;;
-c | --critical )
CRITICAL="$2"; shift 2 ;;
- -- | *)
+ -- )
+ shift
+ break ;;
+ * )
break ;;
esac
done