Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_http_nagios_python
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!
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
-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
Reviews (0)
Be the first to review this listing!