webapp does a HTTP-Request to the given host and asks for a given URL. The return text has to match your configuration.
With this check, you can check web servers like Apache or IIS, web application servers like tomcat or WebSphere, your CGI infrastructure (with database backend), ... .
WEBAPP is the enclosing tag for all APP2CHECK entries.
0 or 1. If you don't define WEBAPP, no webapp check will run.
<WEBAPP>
<APP2CHECK>
<APPNAME>ImportantNewsWeAreAddictedTo</APPNAME>
<HOST>www.heise.de</HOST>
<PORT>80</PORT>
<HTTPRQST>GET / HTTP/1.0</HTTPRQST>
<TEXT2CHECK>Datenschutzhinweis</TEXT2CHECK>
<ERRORLEVEL>ERROR</ERRORLEVEL>
</APP2CHECK>
</WEBAPP>
For every web application you want to check you define one APP2CHECK-pair
The common XML tags as described in Section 9.8, “Tags Common to All Checks and/or Checkpoints”
As many as you like.
Look at WEBAPP
This entity describes the name you want to associate with your web application you are going to check. You can choose any string as you like. For example "ImportantNewsWeAreAddictedTo" or simply the URL "www.heise.de" would both be valid config values. Please note: Even if you specify an URL in this tag this has absolutely no influence on the URL webapp is going to connect to. It is just a name tag. Nothing more, nothing less.
plain text strings
1
Look at WEBAPP
The HTTP request we are going to send to our target host.
Check
mandatory
valid HTTP requests, eg:
GET http://opensmart.sourceforge.net/index.html HTTP/1.0
If you define HOST as 'opensmart.sourceforge.net', that is the same hostname as defined in the URL, you can test a webserver for a simple webpage.
If you define HOST as your proxy, you can test the proxy.
GET http://host/cgi-bin/script.cgi?variable=value HTTP/1.0
to test a cgi script.
1
Look at WEBAPP