Archived community.zenoss.org | full text search
Skip navigation
Currently Being Moderated

17.5 Check for Specific Content on the Web Page

VERSION 1 
Created on: Mar 1, 2010 8:23 AM by Zenoss API - Last Modified:  Mar 1, 2010 8:23 AM by Zenoss API

 5. Check for Specific Content on the Web Page

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

  1. Navigate to the device in the Zenoss interface.

  2. Click the page menu, then select MoreTemplates.

  3. If the button at the right-hand side of the template has the label Create Local Copy, then click on that button to create a local copy. If you don't create a local copy your changes will affect all templates, not just the template bound to this one device.

  4. Click on the HttpMonitor template.

  5. Click on the HttpMonitor data source from the Data Sources table menu.

  6. Change data source options as needed.

     

    Table 17.3. HTTPMonitor Content Checking Data Source Options

    OptionDescription

    Regular Expression

    A Python regular expression to match text in the web page.

    Case Sensitive

    Is the regular expression case-sensitive or not?

    Invert Expression

    If you would like to test to see if the web page does not contain content matched by a regular expression, check this box.


  7. Click Save to save your changes.

Comments (0)