Using the HttpUrl transaction to check a web page
The HttpUrl transaction will scan the content of a web page for a specified regular expression, and send an alert if the content isn't found. To set this up, you will need to enter the following information in Manage Monitoring for the Transaction/HttpUrl:
- Computer - enter the web server name or ip address
- Path - the path to the page at the specified web server
- Port - if not specified: 80 for http and 443 for https
- Protocol - http (default) or https
- ExpectedContentPattern - regular expression to find on the page
****Please note:
The ExpectedContentPattern is a regular expression, and is case sensitive. The ".*" allows for any number of characters to be before or after the string in the source for the page.
****
The URL field will be calculated based on the information entered into the Computer and Path fields.
The Instance and MeasuredObject fields are user defined. You can run multiple HttpUrl transactions against the same web server, so the Instance is used to differentiate between different transactions on the same server.
The MeasuredObject is a user defined field that becomes a property of any Event generated for this problem, and which can be used in Action rules or Correlated Events.
Configuration Examples
HttpUrl configuration example 1:
| Computer | community.heroix.com |
| Instance | Http community |
| Path | / |
| Port | |
| Protocol | http: |
| ExpectedContentPattern | .*Longitude Community.* |
| MeasuredObject | Heroix Community |
This would generate a URL of http://community.heroix.com/, and check for the string "Longitude Community" on that page.
HttpUrl configuration example 2:
| Computer | community.heroix.com |
| Instance | Http community versions |
| Path | /node/111 |
| Port | |
| Protocol | http: |
| ExpectedContentPattern | .*All the transactions in Longitude Standard plus:.* |
| MeasuredObject | Heroix Community Versions |
This would generate a URL of http://community.heroix.com/node/111, and check for the string "All the transactions in Longitude Standard plus:" on that page.