WAS THIS PAGE HELPFUL? Leave Feedback
Overview
Profiles aid in the design and management of hosts and services. Host profiles contain everything you need to configure a device other than a host name, alias, and an IP address. Host profiles can incorporate service profiles, and service profiles are made up of multiple service definitions. This page provides an overview of host profiles.
Host Profile Definition
A host is a physical entity: a physical server, workstation, device, etc., that resides on your network. Services are the logical entities that hosts provide. By default, host profiles are not associated with a specific host. A host profile contains everything you need to configure a device other than a host name, IP address, and an alias. This concept will allow you to generically define the different roles of the different devices you are monitoring. Host profiles store a required host template and other host detail. One or more parent hosts and/or host groups can be added for hosts using this host profile. Host and service escalation trees can be added for a host assigned this host profile and all services on hosts using this profile. Additionally, you can add service profiles for hosts using the profile. You can then assign hosts and host groups to be managed by this host profile. When these combined definitions are assigned to a number of hosts and/or host groups, for example to 50 specific web servers, and you change one of the parameters, it would be applied to all of the specified hosts. You can make a change to either the host profile, the service profile, or in the service, which will then be applied to all associated hosts.
Steps
Creating Host Profiles
We'll start by naming the new host profile and attaching a host template. Then you can configure just about everything that the Nagios engine can know about the host with this form. The good part is that you can change this data at any time, and the hosts that use this profile will be updated with the new settings. This is similar to using templates in Nagios, but the difference is that Nagios templates do not support adding services. Profiles can be applied using the New Host Wizard option in the Configuration application, or later using tabs accessible in the host configuration screen or in the Configuration > Profiles section.
When making changes you must select Save for each tab. If you do not select Save before you go to another tab, you will lose your changes. Additionally, for the saved changes to take place you must select the Apply tab to push the changes made to hosts, host groups, etc. Read the Apply screen carefully as caution should be taken before taking this action. |
Host Detail
This tab displays the name and description for the new host profile along with the required host template.
- Select Configuration > Profiles.
- Select Host Profiles and New.
- In the Host Profile screen enter a Name and Description for the new profile. Select the host template most suitable for this host profile (e.g., generic-host). Select Add, and the Host Profile screen will be displayed.
- In the Host Detail tab, the selected host template properties will be displayed. You can uncheck the left checkbox on the individual directives to override the template values.
- Select Save. Once a host profile has been created, you can manage its details using the tabs provided and described below.
Figure: Host Detail
Parents
Parent Hosts are typically routers, switches, firewalls, etc. that lie between the monitoring host and a remote host. The Parents tab in the host profile screen lets you add or remove parent hosts for hosts using this profile. Parent child relationships may also be managed directly by going to Hosts > Parent Child.
- Select the Parents tab in the host profile screen.
- In this screen, select the parent hosts from the right side list to be included in this profile, and click Add.
- Select Save.
- Select the Apply tab and check the appropriate options to instantiate changes to the hosts.
Figure: Parents
Host Groups
When a host goes down, becomes unreachable, or recovers, Nagios will find which host group(s) the host is a member of, get the contact group for each of those host groups, and notify all contacts associated with those contact groups. The host groups tab is used to add or remove host groups for hosts using this profile. Host groups may also be managed directly by going to Hosts > Host Groups.
- Select the Host Groups tab in the host profile screen.
- In this screen, select the host groups from the right side list to be included in this profile, and click Add.
- Select Save.
- Select the Apply tab and check the appropriate options to instantiate changes to the hosts.
Figure: Hostgroups for hosts using this profile
Escalation Trees
The Escalation Trees option is used to define host and service escalation trees. Escalations trees are used to escalate contact notifications for a particular service, host, or host group. An escalation tree is a grouping of multiple escalations which is then assigned to a host, host profile, host group, or a service to escalate notifications. Escalations and escalation trees are themselves defined and configured under Configuration > Escalations. The escalation trees tab enables you to optionally select host and service escalations appropriate for a host using this profile. Assigning a service escalation tree sets the escalation for all services on hosts using this profile.
- Select the Escalation Trees tab in the host profile screen.
- Select the host and or service escalation tree from the drop-down boxes and Save.
- Select the Apply tab to apply escalations to hosts.
Figure: Escalation Trees for hosts using this profile
Service Profiles
The Service Profiles tab enables you to add or remove service profiles for hosts using this profile.
- Select the Service Profiles tab in the host profile screen.
- In this screen, select the service profiles from the right side list to be included in this profile, and click Add.
- Select Save.
- Select the Apply tab to push changes to the hosts.
Figure: Service Profiles
Assign Hosts
The Assign Hosts tab within the host profile screen enables you to add or remove hosts to be individually managed by this profile. Removing a host means the host is no longer managed by this profile unless it is a member of a host group which is managed by this profile (see below). The host will retain its properties until the host is assigned and applied to another profile, or modified individually.
- Select the Assign Hosts tab in the host profile screen.
- In this screen, select the hosts from the right side list to be included in this profile, and click Add.
- Select Save.
- Select the Apply tab to instantiate changes to the host.
Figure: Assign Hosts
Assign Host Groups
The Assign Host Groups tab enables you to add or remove host groups to be managed by this profile. Having a host group be managed by a host profile allows you to apply changes to the host profile to all the host members of the host group, without having to individually assign the host profile directly to each of the hosts. Removing a host group means the host group is no longer managed by this profile. The member hosts will retain their properties until the host group is assigned and applied to another profile, or the member hosts are modified individually.
- Select the Assign Host Groups tab in the host profile screen.
- In this screen select the host groups from the right side list to be included in this profile, and select Save.
- Select the Apply tab to instantiate changes to the member hosts.
Figure: Assign host groups to be managed by this profile
Apply
As mentioned above, for the saved changes to take place you must select the Apply tab to push the changes made to hosts, host groups, etc.
Read the Apply screen carefully as caution should be taken before taking this action. |
Applying a host profile at this point will modify the current service configuration across probably multiple hosts. Before taking this action, be sure to double-check:
- your host profile changes
- your chosen set of target hosts that reference this host profile
- which host properties you wish to apply from the profile to the hosts
- how you want to modify the existing services
Figure: Apply changes