Checkhttp string

Marcin Praczko marcin at 2fluid.co.uk
Mon Nov 12 18:22:27 CET 2007


> How do I go about checking a specific page in a site?  I am able to
> successfully check a string on the default document for a site but if
> I specify for example index2.aspx in the host part of checkhttp, it
> throws an error.

You can use command (Exacly with ENTER as I wrote:)

define command {
	command_name	check_http
	command_line	$USER1$/check tcp \
				-H $HOSTADDRESS$ -p 80 -s 'GET / HTTP/1.0
' -e 'HTTP/1.0 200 OK'
}


But you can see webinject. I didn’t try it but author from book: "Building a monitoring infrastructure with nagios" (David Josephsen) said that is very good solution. You can parse data (expected respone etc - parse that is error messeage like: MySQL Error, etc). [Above command is example form this book as well].

HTH. 

Marcin Praczko.
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.27/1121 - Release Date: 09/11/2007 19:29
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list