Letractively / nagios-check-webpage

Automatically exported from code.google.com/p/nagios-check-webpage
0 stars 0 forks source link

Critical response with unhelpful error message when name can't be resolved #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./check_webpage -u http://fdhsaukfhdka.net
2. Critical: error with [http://fdhsaukfhdka.net/]: undefined method `closed?' 
for nil:NilClass

What is the expected output? What do you see instead?

Critical: error with [http://fdhsaukfhdka.net/]: Name or service not known.

What version of the product are you using? On what operating system?

0.4

Original issue reported on code.google.com by christia...@googlemail.com on 10 Aug 2010 at 7:12

GoogleCodeExporter commented 8 years ago
Which version of ruby are you using ?

Is the problem easily reproducible  ?

Original comment by toubib....@gmail.com on 10 Aug 2010 at 9:10

GoogleCodeExporter commented 8 years ago
I can't reproduce the error.

~/svn/nagios-check-webpage$ ./test_check_webpage.sh 
Using .rvm/gems/ruby-1.8.7-p352

search OK for -u http://google.com [OK]
search OK for -u http://google.com -vv [OK]
search OK for -u http://google.com -k google [OK]
search OK for -u http://google.com -k google -z [OK]
search OK for -u http://google.com -k google -z -n [OK]

search ERR for -u http://4dsHfNYD4KRyktGH.com [OK]
search ERR for -u http://google.com -k 4dsHfNYD4KRyktGH [OK]

Using /home/mrlag/.rvm/gems/ruby-1.9.2-p290

search OK for -u http://google.com [OK]
search OK for -u http://google.com -vv [OK]
search OK for -u http://google.com -k google [OK]
search OK for -u http://google.com -k google -z [OK]
search OK for -u http://google.com -k google -z -n [OK]

search ERR for -u http://4dsHfNYD4KRyktGH.com [OK]
search ERR for -u http://google.com -k 4dsHfNYD4KRyktGH [OK]

~/svn/nagios-check-webpage$       

Original comment by toubib....@gmail.com on 29 Aug 2011 at 8:38