Example: getting an Email alert when the Web server fails

This example shows how to set up monitoring for your Web server so that an email alert is sent when the Web server fails, or when Web content is not available.

First, you need to set up the monitors for your Web server. Then, create an Email Action and assign it to the monitors.

Setting up monitors for a Web server and creating an Email Action that is assigned to monitors:

  1. Open the properties for your Web server device:

    In either Device or Map View, right-click on the web server device, then select Properties. The Device Properties dialog appears.

  2. Click Active Monitors. The Device Properties - Active Monitors dialog appears.
  3. Click Add. The Select Active Monitor Type dialog appears.
  4. Use the following dialogs to add the HTTP active monitor to your Web server device; this monitor checks that HTTP (port 80) is active.
    1. On the Select Active Monitor Type dialog, select HTTP, then click Next. The Set Polling Properties dialog appears.
    2. Ensure that the default settings are selected (Enable polling for this Active Monitor and Use default network interface), then click Next. The Setup Actions for Monitor State Changes dialog appears.
    3. Select Apply individual actions, then click Add. The Select or Create Action dialog appears.
    4. Select Create a new action, then click Next. The Select Action Type dialog appears.
    5. In the Select the actions type to create list, select E-Mail Action, then click Next. The Select State Change dialog appears.
    6. In Execute the action on the following state change, select Down,then click Finish. The New Email Action dialog appears.
    7. Enter the information as shown:

    8. Click Mail Content. The following information is included in the Edit Mail Content dialog and can be customized:

    9. Click OK to save changes and to return to the previous dialog. Click OK again to return to the Setup Actions for Monitor State Changes dialog, then click Finish.

Setting up an HTTP Content active monitor with an email alert:

  1. Open device properties for your Web server device:

    In either Device or Map View, right-click on the web server device, then select Properties. The Device Properties dialog appears.

  2. Click Active Monitors. The Device Properties - Active Monitors dialog appears.
  3. Click Add. The Select Active Monitor Type dialog appears.
  4. Use the same process to add the HTTP Content active monitor; this monitor checks that the Web server returns valid content in response to an HTTP request.
    1. On the Select Active Monitor Type dialog, select HTTP Content, then click Next. The Set Polling Properties dialog appears.
    2. Ensure that the default settings are selected (Enable polling for this Active Monitor and Use default network interface), then click Next. The Setup Actions for Monitor State Changes dialog appears.
    3. Select Apply individual actions, then click Add. The Select or Create Action dialog appears.
    4. Select Select an action from the Action Library, then click Next. The Select Action and State dialog appears.
    5. Under Select an action from th Action Library, select MailtoWebmaster. Under Execute the actions on the following state change, select Down, then click Finish to save the changes and return to the Setup Actions for Monitor State Changes dialog.
    6. On the Select Action and State dialog, select MailtoWebmaster, then click Finish to save the changes and return to the Setup Actions for Monitor State Changes dialog.
    7. Click Finish.

    The two active monitors and resulting email actions are now enabled.

    When the Web server is down, the HTTP Active Monitor fails and triggers the Email Action, which sends an email message similar to the following:

    Web1 is down on server: web1.YourDomain.com (192.168.5.5)

    Details:

    Monitors that are down include:

    Monitors that are up include:

    HTTP Content

    Notes on this device (from device property page):

    Lamar Bldg; 2nd floor

    -----------------------

    This mail was sent on 11/28/2007 at 15:34:01

    Ipswitch WhatsUp Gold

    If the Web server cannot return web content, the Email Action report reads:

    HTTP Content is down on server: web1.YourDomain.com (192.168.5.5)

    Any details or notes specified in the action are also reported.

See Also

Using Actions

Actions overview

About the Action Library

Configuring an action

About Percent Variables

Testing an action

Assigning an action

Removing an action

Creating a Blackout Period

About Action Policies

Using Scripting Actions