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_curl2

Rating
0 votes
Favoured:
0
Hits
101861
Files:
FileDescription
check_curl.phpcheck_curl.php Script
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check a web page contents for specific search terms. Built on check_curl posted here on Nagios Exchange by maestrx. Added capability to have output from webpage completely drive Nagios return codes.
This modification to the check_curl allows for having a webpage
run your check code and return a status to Nagios. This way, if you have a remote process running on a webserver that needs to utilize some prebuilt code (maybe it talks to a database and runs specific queries that aren't directly accessible from your Nagios machine).

The webpage just needs to be written to return a line of status information so that Nagios can handle the condition and make the appropriate notification(s).

For Example:

Status: OK - There are 2 pending records in the queue.

or

Status: WARNING - There are 10 pending records in the queue.

or

Status: CRITICAL - There are 99 pending records in the queue.