Home Directory Plugins Network Protocols HTTP check_http_nagios_python

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_http_nagios_python

Rating
0 votes
Favoured:
0
Hits
98760
Files:
FileDescription
check_http_nagios.pycheck_http_python for Python 2.4
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
check_http with Python HTTPLIB
This script realise a check_http as the basic Nagios check plugin but with some differences :

-was written with Python ( use Httplib and urllib2 )

-check the response ( keyword presence )



Dont forget to put a timeout in your httplib module :
-Edit /usr/lib/python2.4/httplib.py
-Go to def connect(self): function
-Add self.sock.timeout(xx) just before self.sock.connect
xx= number of seconds