WebMonitor
WebMonitor is a clone of HttpMonitor, that uses a different underlying library for doing HTTP connections. WebMonitor uses Apache HttpClient, which acts more like a real browser (follows redirects, and so on) than HttpMonitor.
Configuration and use
Parameter | Description | Default |
---|---|---|
use-system-proxy {} |
Specifies that system-wide proxy settings be used. |
false |
scheme |
Protocol/scheme to use. |
http, https |
port |
The port to connect to. |
80 |
path |
The path of the URL to request (for example, |
n/a |
queryString |
The query string to add to the URL after a |
n/a |
timeout |
The connection/socket timeout in milliseconds. |
3000 |
user-agent |
The User-Agent: header to send. |
OpenNMS WebMonitor |
virtual-host |
The Host: header to send. |
n/a |
http-1.0 |
True/false whether to use HTTP 1.0 or 1.1. |
false |
header_#header#-value |
Additional headers to include in the request.
The parameter name should match a regular expressions of |
n/a |
use-ssl-filter |
Defaults to false. If true, it will trust self-signed certificates. |
false |
auth-enabled |
Whether to enable basic authentication. |
n/a |
auth-user |
The username for basic authentication. |
n/a |
auth-password |
The password |
n/a |
auth-preemptive |
Whether to send basic authentication even if the site did not ask for it. |
true |
response-text |
The response text to look for. |
n/a |
response-range |
What HTTP status ranges are considered success. |
100-399 |
{} indicates the parameter supports placeholder substitution.