• Hack the check_webpage.rb plugins for Nagios

    by maxidea • 2010年11月16日 • UNIX\Linux, 网络技术 • 0 Comments

    I got error “parse.rb:33: [BUG] Segmentation fault” when I using Hpricot to parsing HTML by check_webpage.rb
    So I change to use Nokogiri.
    P.S.  The creator of Hpricot, recently posted that you should better use Nokogiri instead of HPricot  -_-|||

    The hack file can be download here:

    http://www.maxidea.com/project/rlm/nagios/check_webpage-hack.tar.gz

    It has been testing on my CentOS5 and you may need following packages for run it on Linux :

    yum install ruby*

    wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz

    gem install nokogiri

    gem install optiflag

    Sample usage command: ./check_webpage.rb -v -u  http://www.maxidea.com

    留下评论

    Your email address will not be published. Required fields are marked *