ZenPacks

HTTP Monitor ZenPack

This ZenPack provides status and response time monitoring of HTTP URLs.

Releases

Version 3.0.4-Download
Released on 2018/08/23
Requires PythonCollector ZenPack
Compatible with Zenoss Resource Manager 5.3 - 6.2 and Zenoss Cloud

Contents

Background

The ZenPacks.zenoss.HttpMonitor ZenPack monitors the response times of HTTP server connection requests and determines whether specific content exists on a webpage.

Support

This ZenPack is part of Zenoss Core. Open Source users receive community support for this ZenPack via our online forums. Enterprise support for this ZenPack is provided to Zenoss customers with an active subscription.

Features

HttpMonitor features include:

  • Monitors HTTP response time
  • Monitors HTTP page size
  • Monitors HTTP response code
  • Monitors HTTP through Proxy server
  • Monitors HTTP with Basic access authentication
  • Monitors HTTP specific content on the Web page

Enable Monitoring

Follow these steps to enable monitoring:

  • Select Infrastructure from the navigation bar.
  • Click the device name in the device list. The device overview page appears.
  • Expand Monitoring Templates, and then select Device from the left panel.
  • Select Bind Templates from the Action menu. The Bind Templates dialog appears.
  • Add the HttpMonitor template to the list of selected templates, and then click Submit.

The HttpMonitor template is added to the list of monitoring templates. You can now begin collecting Web server metrics from the device.

Check for a Specific URL or Specify Security Settings

  • Select Infrastructure from the navigation bar.
  • Click the device name in the device list. The device overview page appears.
  • Select the 'Gear' icon on the bottom panel and select the "Override Template Here" option.
  • Choose "HttpMonitor (/)" template and select "Submit". This will create a local copy of the default HttpMonitor template for only this device.
  • Select the newly created "HttpMonitor (Locally Defined)" template.
  • Select the HttpMonitor data source, and then select View and Edit Details from the Action menu. The Edit Data Source dialog appears.
  • Change data source options as needed, and then click Save.

HttpMonitor Content Checking Data Source Options

OptionDescription
PortThe port to connect to HTTP server (default 80).
Use SSLUse SSL for the connection (default False).
URLAddress of the web page (default /).
Basic Auth UserIf the website requires credentials, specify the username here (default None).
Basic Auth PasswordPassword for the user (default None).
Redirect BehaviorIf the web site returns an HTTP redirect, should the probe follow the redirect or create an event? (default follow)
ok - Do not follow the redirect and return a positive response
fail - Do not follow the redirect and return a negative response
follow - Follow redirection
stickyhost - Use original hostname (or IP address) on redirect
stickyhostport - Use original hostname and port on redirect
Event class(default /Status/HTTP)

Tuning for Site Responsiveness

  • Select Infrastructure from the navigation bar.
  • Click the device name in the device list. The device overview page appears.
  • Select the 'Gear' icon on the bottom panel and select the "Override Template Here" option.
  • Choose "HttpMonitor (/)" template and select "Submit". This will create a local copy of the default HttpMonitor template for only this device.
  • Select the newly created "HttpMonitor (Locally Defined)" template.
  • Select the HttpMonitor data source, and then select View and Edit Details from the Action menu. The Edit Data Source dialog appears.
  • Change data source options as needed, and then click Save.
OptionDescription
Timeout (seconds)Seconds before connection times out (default: 60)
Cycle Time (seconds)Number of seconds between collection cycles (default: 300 or five minutes)

Check for Specific Content on the Web Page

This procedure allows Zenoss platform to create an event if content at the web page does not match the expected output.

  • Select Infrastructure from the navigation bar.
  • Click the device name in the device list. The device overview page appears.
  • Select the 'Gear' icon on the bottom panel and select the "Override Template Here" option.
  • Choose "HttpMonitor (/)" template and select "Submit". This will create a local copy of the default HttpMonitor template for only this device.
  • Select the newly created "HttpMonitor (Locally Defined)" template.
  • Select the HttpMonitor data source, and then select View and Edit Details from the Action menu. The Edit Data Source dialog appears.
  • Change data source options as needed, and then click Save.

HTTPMonitor Content Checking Data Source Options

OptionDescription
Regular ExpressionA Python regular expression to match text in the web page.
Case SensitiveIs the regular expression case-sensitive or not?
Invert ExpressionIf you would like to test to see if the web page does not contain content matched by a regular expression, check this box.

Daemons

TypeName
Performance Collectorzenpython

Changes

3.0.4

  • Fix issue with locally defined monitoring templates after upgrade (ZPS-3817)
  • Fix handles bad proxy hostnames (ZPS-3819)
  • Adds unittests for regular expression and redirect behavior
  • Adds Case sensitive/Invert Expression/Regular Expression properties into DataSource configuration (ZPS-3867)
  • Adds Redirect Behavior options ok/fail/follow/sticky/stickyport (ZPS-3867)
  • Tested with Zenoss Resource Manager 6.2.0, Zenoss Resource Manager 5.3.3

3.0.0

  • Removes Case sensitive/Invert Expression/Regular Expressions zProperties from DataSource configuration
  • Changes Redirect Behavior list to checkbox
  • Removes dependency library check_http from Nagios Plugins
  • Adds unittests
Open Source

This ZenPack is developed and supported by Zenoss Inc. Contact Zenoss to request more information regarding this or any other ZenPacks. Click here to view all available Zenoss Open Source ZenPacks.

randomness