How to configure notifications using Nagios

Version 1 by Bren Eckles
on Jun 15, 2018 19:07.

compared with
Current by Bren Eckles
on Oct 05, 2018 17:03.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (38)

View Page History
\\
\\
Figure: Defining a Host Group host group
!bookshelf_notifications_how_to_01.jpg|thumbnail,border=1!
!bookshelf_notifications_how_to_01.jpg|alt="Defining a host group",title="Defining a host group"!

h6. Defining a Service Group service group

*Service Groups* allow for flexibility in determining who gets paged for what kind of problems. Service groups allow you to group services together for display purposes in the CGIs and can be referenced in service dependency and service escalation definitions to make configuration a bit easier. This section will take you through the steps to create a new service group. The prerequisites for service groups are defined hosts with services and services assigned to hosts.
\\
\\
Figure: Defining a Service Group service group
!bookshelf_notifications_how_to_02.jpg|thumbnail,border=1!
!bookshelf_notifications_how_to_02.jpg|alt="Defining a service group",title="Defining a service group"!

h1. 2.0 Configuring Contacts and Contact Groups
For additional information on _Contacts_ select [http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html].

h6. Creating Contact Templates
h6. Creating contact templates

# Select Configuration > *Contacts*, select the *Contact Templates* option, and *New* to create a new template, or you can copy or modify an existing template.
\\
\\
Figure: Contact Ttemplates
!bookshelf_notifications_how_to_03.jpg|thumbnail,border=1!
!bookshelf_notifications_how_to_03.jpg|alt="Contact templates",title="Contact templates"!

h6. Creating Ccontacts

# Select *Configuration* > *Contacts*, *Contacts*, and *New* to create a new contact (or you can copy or modify an existing contact).
\\
Figure: Contacts
!bookshelf_notifications_how_to_04.jpg|thumbnail,border=1! !bookshelf_notifications_how_to_04.jpg|alt="Contacts",title="Contacts"!

h6. Creating Contact Groups
\\
\\
Figure: Contact Ggroups
!bookshelf_notifications_how_to_05.jpg|thumbnail,border=1!
!bookshelf_notifications_how_to_05.jpg|alt="Contact groups",title="Contact groups"!

{anchor:DefiningEscalationTrees}
*Escalation Trees* are groupings of multiple host or service escalation definitions that can be assigned to a host, host profile, host group, or a service. Notifications and escalations are how the GroundWork Monitor's _Nagios_ engine alerts its users when monitoring services change between states (OK, WARNING, CRITICAL, and UNKNOWN). Escalations combine specified contact groups that are to be notified when a notification is escalated. An escalation tree is a grouping of multiple escalations which are then assigned to a host, host profile, host group, or a service. Escalations are optional. Below, we cover creating escalations and then configuring escalation trees.

h6. Creating Eescalations

# Select Configuration > *Escalations*, expand the *Escalations* drop-down menu, expand the *Host* (or *Service*) drop-down menu, and select *New*.
\\
Figure: Escalations
!bookshelf_notifications_how_to_06.jpg|thumbnail,border=1! !bookshelf_notifications_how_to_06.jpg|alt="Escalations",title="Escalations"!

h6. Configuring Escalation Trees
\\
\\
Figure: Escalation Ttrees
!bookshelf_notifications_how_to_07.jpg|thumbnail,border=1!
!bookshelf_notifications_how_to_07.jpg|alt="Escalation trees",title="Escalation trees"!

h6. Add Escalations to an Escalation Tree
\\
\\
Figure: Escalation Ttrees
!bookshelf_notifications_how_to_08.jpg|thumbnail,border=1!
!bookshelf_notifications_how_to_08.jpg|alt="Escalation trees",title="Escalation trees"!

h6. Assigning Host Groups
\\
\\
Figure: Assigning Host Groups to an Escalation Tree
!bookshelf_notifications_how_to_09.jpg|thumbnail,border=1!
Figure: Assigning host groups to an escalation tree
!bookshelf_notifications_how_to_09.jpg|alt="Assigning host groups to an escalation tree",title="Assigning host groups to an escalation tree"!

h6. Applying Escalation Trees
When creating or modifying an *Escalation Tree* you have the option to assign host groups which sets the default host escalation for all hosts in the host group. And you can assign hosts which sets the host escalation for the host. Additionally, you can add an escalation tree to defined host groups and hosts.

Apply an Escalation Tree to a Host
Apply an escalation tree to a host

# Go to *Configuration* > *Hosts*, *Hosts*, and choose a *Host Group* for the host you want to edit and then select the host.
\\
\\
Figure: Applying an Escalation Tree to a Host
!bookshelf_notifications_how_to_10.jpg|thumbnail,border=1!
Figure: Applying an escalation tree to a host
!bookshelf_notifications_how_to_10.jpg|alt="Applying an escalation tree to a host",title="Applying an escalation tree to a host"!

h6. Apply an Escalation Tree to a Host Group
\\
\\
Figure: Apply an Escalation Tree to a Host Group
!bookshelf_notifications_how_to_11.jpg|thumbnail,border=1!
Figure: Apply an escalation tree to a host group
!bookshelf_notifications_how_to_11.jpg|alt="Apply an escalation tree to a host group",title="Apply an escalation tree to a host group"!

h1. 4.0 Enabling and Receiving Notifications
Notifications in _GroundWork Monitor_ are set to *{_}OFF{_}* system-wide by default. This means that host and service notifications will not be sent out. After enabling notifications, host and service notifications will be sent to any valid system contacts. In addition to the system-wide default setting for notifications, the _Enable Notifications_ option can be set for all hosts and services assigned to a specific template by setting this option in a host or service template. Also, the _Enable Notifications_ option can be set for individual host or service definitions by changing the definitions template inheritance. Below, we outline how to enable notifications. For additional information on notifications select [http://nagios.sourceforge.net/docs/3_0/notifications.html]. After enabling notifications, continue setting up system notifications and escalations by clicking the home icon at the top of this page and referring to links under _Setting up Host and Service Notifications_.

h6. Enable System Wide Notifications
h6. Enable system wide notifications

# Select *Configuration* > *Control*, and the *Nagios Main Configuration* option.
\\
\\
Figure: Enable Nnotifications
!bookshelf_notifications_how_to_12.jpg|thumbnail,border=1!
!bookshelf_notifications_how_to_12.jpg|alt="Enable notifications",title="Enable notifications"!