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 device properties for your Web server device (right-click a web server device, then click Properties). The Device Properties dialog appears.
  2. Click Active Monitors. The 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 screen, select HTTP, then click Next. The Set Polling Properties dialog appears.
    2. Leave the default settings 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. Select the Down option in the Execute the action on the following state change list, 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 as required:

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

Setting up an HTTP Content Active Monitor with an email alert:

  1. Open device properties for your Web server device (right-click the same Web server device you used for the email alert, then click Properties). The Device Properties dialog appears.
  2. Click Active Monitors. The 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 screen, select HTTP Content, then click Next. The Set Polling Properties dialog appears.
    2. Leave the default settings 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. In the Select an action from th Action Library list, select MailtoWebmaster. In the Execute the actions on the following state change list, select Down, then click Finish to save the changes and return to the Setup Actions for Monitor State Changes screen.
    6. On the Select Action and State screen, 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, HTTP Active Monitor will fail, triggering 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 could not return web content, the Email Action would report:

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

    Any details or notes specified in the action will also be reported.