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:
- In either Details or Map View, right-click on the web server device, then select . The Device Properties dialog appears.
- Click . The Device Properties - Active Monitors dialog appears.
- Click . The Select Active Monitor Type dialog appears.
- Use the following dialogs to add the HTTP active monitor to your web server device; this monitor checks that HTTP (port 80) is active.
- On the Select Active Monitor Type dialog, select , then click . The Set Polling Properties dialog appears.
- Ensure that the default settings are selected ( and ), then click . The Setup Actions for Monitor State Changes dialog appears.
- Select , then click . The Select or Create Action dialog appears.
- Select , then click . The Select Action Type dialog appears.
- In the list, select , then click . The Select State Change dialog appears.
- Select from the list, then click . The New Email Action dialog appears.
- Enter the information using your mail and SMTP server settings:
- Click . The following information is included in the Edit Mail Content tab and can be customized:
- Click to save changes and to return to the previous dialog. Click again to return to the Setup Actions for Monitor State Changes dialog, then click .
Setting up an HTTP Content active monitor with an email alert:
- In either Details or Map View, right-click on the web server device, then select . The Device Properties dialog appears.
- Click . The Device Properties - Active Monitors dialog appears.
- Click . The Select Active Monitor Type dialog appears.
- Use the same process to add the HTTP active monitor; this monitor checks that the Web server returns valid content in response to an HTTP request.
- On the Select Active Monitor Type dialog, select , then click . The Set Polling Properties dialog appears.
- Ensure that the default settings are selected ( and ), then click . The Setup Actions for Monitor State Changes dialog appears.
- Select , then click . The Select or Create Action dialog appears.
- Select , then click . The Select Action and State dialog appears.
- Under , select . This is the action that you created in the previous steps.
- Under , select , then click to save the changes and return to the Setup Actions for Monitor State Changes dialog.
- On the Select Action and State dialog, select , then click to save the changes and return to the Setup Actions for Monitor State Changes dialog.
- Click .
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.