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:
- Open device properties for your web server device (right-click a web server device, then click ). The Device Properties dialog opens.
- Click . The Active Monitors dialog opens.
- Click . The Select Active Monitor Type dialog opens.
- 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 screen, select , then click . The Set Polling Properties dialog opens.
- Leave the default settings selected ( and , then click . The Setup Actions for Monitor State Changes dialog opens.
- Select , then click . The Select or Create Action dialog opens.
- Select , then click . The Select Action Type dialog opens.
- In the list, select , then click . The Select State Change dialog opens.
- Select the option in the list, then click . The New Email Action dialog opens.
- Enter the information as shown:
- Click . The following information is included in the Edit Mail Content dialog and can be customized as required:
- Click to save changes and return to the previous screen. Click again to return to the Setup Actions for Monitor State Changes screen, then click .
Setting up an HTTP Content active monitor with an email alert:
- Open device properties for your web server device (right-click the same web server device you used for the email alert, then click ). The Device Properties dialog opens.
- Click . The Active Monitors dialog opens.
- Click . The Select Active Monitor Type dialog opens.
- 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.
- On the Select Active Monitor Type screen, select , then click . The Set Polling Properties dialog opens.
- Leave the default settings selected ( and , then click . The Setup Actions for Monitor State Changes dialog opens.
- Select , then click . The Select or Create Action dialog opens.
- Select , then click . The Select Action and State dialog opens.
- In the list, select . In the list, select , then click to save the changes and return to the Setup Actions for Monitor State Changes screen.
- On the Select Action and State screen, 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, 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)
along with any details or notes specified in the action.