Back to Geneos FAQ

How to monitor web page content that is in plain text format?

The Web-Mon plugin can monitor web page content and search for keywords inside. If the user wants the content to be displayed on the Active Console, the Extractor plugin can be used. This article provides an example where the target web page does not have any HTML tags. The content type is text/plain in the HTTP header.

In this article, the sample web page displays a simple status message for illustration.

Normal status message for localhost

Web-Mon plugin with Success Criteria Copied

The Web-Mon plugin has a Success Criteria button located at each Stage which can specify a relative URL for the monitored web site. The Success Criteria option can monitor the HTTP response code, such as 200, and page content.

Success Criteria button

Users can specify one or more keywords and regular expressions to search for inside the page content. The following example checks for a single phrase running normally that should be present on the target web page.

Running normally phrase check in conditions

Data transfer to Extractor plugin Copied

If the user wants the content to be displayed on the Active Console, the Extractor plugin can be used. The Data Transfer button should be entered with a name such as DT1, which can pass the content to the Extractor plugin.

Data transfer button

Then the user should configure the Extractor plugin with the same Name in the Data Transfer option.

DT1 name for data transfer

After that, the Custom button should be selected to specify how the target web page should be parsed. We will need to define some columns and rows as placeholders to display the contents. As the web page does not have any HTML tags, the whole contents is considered to be placed under the XPath /html/body and text() functions.

Content defined via xpath

The Active Console output is shown below.

DT1 output

The Extractor plugin configuration in XML format is also attached in this article.

["Geneos"] ["Geneos > Netprobe"] ["FAQ"]

Was this topic helpful?