Letractively / nagios-check-webpage

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

script doesnt run #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set up ruby enterprise 
2. download and run script
3. profit!

What is the expected output? What do you see instead?
./check_webpage.rb -vv -u http://google.ru

 * ARGS: c=60 w=5 e=0 w2=10 u=http://google.ru

 * Get main page: http://google.ru/
./check_webpage.rb:214:in `getUrl': undefined method `to_yaml' for #<Net::HTTP 
google.ru:80 open=false> (NoMethodError)
        from ./check_webpage.rb:311

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

latest version, ubuntu 10.04, ruby enterprise Version 1.8.7-2011.03 for Ubuntu 
10.04 (32-bit)

Please provide any additional information below.

fixed by

require 'yaml' in the beginning of the script

Original issue reported on code.google.com by taz.ins...@gmail.com on 2 Mar 2011 at 8:43

GoogleCodeExporter commented 8 years ago

Original comment by toubib....@gmail.com on 13 Mar 2011 at 7:07

GoogleCodeExporter commented 8 years ago
Already fixed in the trunk
Fix released with v0.5

Original comment by toubib....@gmail.com on 13 Mar 2011 at 7:53