Re: [Nagios-users] Checkhttp string

2007-11-12 Thread Marcin Praczko
> 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_namecheck_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@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

Re: [Nagios-users] Checkhttp string

2007-11-12 Thread Hari Sekhon
don't you mean to use -u /index.aspx instead of putting it in the host 
part? ;-)

try something more along the lines of:

check_http -H www.mysite.com -u /index.aspx -s "string to look for"

-h

Hari Sekhon



Jerad Riggin wrote:
> 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.
>
> -
> 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@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
>
>   

-
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@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


[Nagios-users] Checkhttp string

2007-11-12 Thread Jerad Riggin
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.

-
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@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