How Do I Define a Host or Service Escalation Tree?
Step 1 – Defining a Host or Service Escalation Tree
- Select Escalations from the Configuration menu options.
- Expand the Escalation Trees drop-down menu.
- Expand the Host (or Service) drop-down menu.
- Select New.
- Enter a name for the Host (or Service) Escalation Tree.
- Select Add to create the new Host (or Service) Escalation Tree. The new Escalation Tree name will then be listed in the navigation tree. At this point the Escalation Tree will be added to the database but it will not yet have any particular escalation assigned to it. Continue with Step 2 – Modifying a Host (or Service) Escalation Tree.
Figure 5.8.2a. Defining a Host (or Service) Escalation Tree
Step 2 – Modifying a Host Escalation Tree – Adding Escalations
By selecting Modify and selecting an Escalation Tree entry we can add Escalations to the tree where you can build up a number of Escalations to accomplish elaborate Notification schemes. For example, a Technical Contact Group could be assigned an Escalation that sends out the first through the last Notifications. Whereas a different Escalation might start with the 5th Notification and end with the 6th Notification and go to a Senior Manager that might want to be notified only when a alarm hasn’t been acknowledged within the 4 previous Notifications.
- Expand the Modify drop-down menu and select an Escalation Tree name to add Escalations to.
- Here you will see a list of defined Escalations. Select an Escalation and click on the Add Escalation button. Continue with Step 3 – Adding One or More Contact Groups
Figure 5.8.2b. Modifying a Host Escalation Tree
Step 3 – Modifying a Host Escalation Tree – Adding One or More Contact Groups
Contact Groups that are selected will be notified when the Host Notification is escalated.
- Adding an Escalation takes you to the next screen where you need to add one or more Contact Groups.
- Select Assign Contact Groups.
Figure 5.8.2c. Assigning Contact Groups
Step 4 – Modifying a Host Escalation Tree – Adding Additional Escalations (Escalation Templates)
Here we will add Host Groups and/or Hosts to the Escalation Tree.
- You will see the selected Escalation listed displaying the name, first notification, and assigned Contact Groups.
- Here you can also, for any Escalation, select Modify Groups to change the list of Contact Groups associated with the Escalation, or you can select Remove to delete an Escalation from the Escalation Tree. Continue with Step 5 – Assigning Host Groups.
Figure 5.8.2d. Modifying a Host Escalation Tree
Step 5 – Modifying a Host Escalation Tree – Assigning Host Groups
Now you can optionally assign Host Groups which will set the default Host Escalation for all Hosts in a Host Group. You also have the option to set a Host Escalation for a Host.
- Select the Assign Host Groups tab.
- Select the Host Groups to assign to the Escalation Tree.
- Select Save and Close.
Figure 5.8.2e. Assigning Host Groups
Note – Adding an Escalation to a Host Group via Host > Host Groups > Modify
- Note that you could have also added this Escalation to the Linux Server Host Group by selecting Hosts > Host Groups > Modify and Linux Servers, then selecting from the Host Escalation ID drop-down list Hostgroup Escalation Tree Example 1.
Figure 5.8.2f. Adding an Escalation to a Host Group via Host>Host Groups>Modify
Nagios® Configuration Object Definitions
When the Escalation Tree is committed to the Nagios® engine cfg files, the configurator creates the following Nagios® configuration object definition:
define hostescalation {
use Hostgroup Escalation Example 1
hostgroup_name Linux Servers
contact_groups nagiosadmin
}
define hostescalation {
name Hostgroup Escalation Example 1
first_notification 1
last_notification 0
notification_interval 15
escalation_period 24x7
escalation_options d
register 0
}
For more information about Host Escalation definitions see http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostescalation.
|