File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def haproxy_response(options)
130
130
end
131
131
132
132
begin
133
- return open ( options . url , open_options ( options ) )
133
+ return URI . open ( options . url , ** open_options ( options ) )
134
134
rescue OpenURI ::HTTPError => e
135
135
puts "ERROR: #{ e . message } "
136
136
options . http_error_critical ? exit ( CRITICAL ) : exit ( UNKNOWN )
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
NUM_TESTS=$( find test/haproxy/ -type f -name ' *.csv' | wc -l| awk ' {print $1}' )
4
- echo " 1..$(( $NUM_TESTS + 2 )) " # this sucks, you have to add test count manually
4
+ echo " 1..$(( $NUM_TESTS + 3 )) " # this sucks, you have to add test count manually
5
5
I=1
6
6
for f in test/haproxy/* .csv; do
7
7
OUTPUT_FILE=$( mktemp)
@@ -36,3 +36,6 @@ do_test 'warn limit' \
36
36
37
37
do_test ' crit limit' \
38
38
" ./check_haproxy.rb -u test/haproxy/fedoraproject_org.csv -w 1 -c2 -p fedmsg-raw-zmq-outbound-backend |grep 'CRIT.*too many sessions' > /dev/null"
39
+
40
+ do_test ' live url' \
41
+ " ./check_haproxy.rb -u 'http://demo.1wt.eu/' >/dev/null"
You can’t perform that action at this time.
0 commit comments