About Host Services
This page outlines how to manage Nagios configured host services (services previously applied to a specific host). A hosts configuration defines a physical server, workstation, device, etc. which reside on your network, and Services are the logical entities hosts provide.
- When first configuring a host, if a host profile is selected the services from the host profile's service profile will be included in the list of host services, and any individually selected services will also be part of the host definition.
- If you would like to create a new service to apply to a host(s) see Configuring Services.
- If you make any changes, click Save before proceeding to another tab.
- After all configuration changes you need to perform a commit operation.
- Hovering over the fas fa-question symbol displays a description of each directive.
Managing Host Services
You can easily manage a host service configurations by going to Configuration > Nagios Monitoring > Hosts > Hosts, then navigating to the host service. You will see the Manage Host Service page with four tabs titled; Service Detail, Service Check, Service Dependencies, and Service Externals. Each of these are referenced below.
A hosts Service Detail includes the host name, service name, the applied service template and specified service object directives. A checked fas fa-check-square Inherit box indicates the directive is inherited from the service template. To override a particular template value, first uncheck the check box, then provide a custom value. This changes this host service only.
If you have changes, click so Save and optionally continue with the next tab Service Check.
The Service Check tab within the Manage Host Service page allows you to edit and test a service check command with the host, apply externals, and manage multiple instances. if you are satisfied with the check as inherited from the template, do nothing on this page. Otherwise uncheck the inherit checkbox and make the necessary changes.
Don't forget to Save the service check with the new service and optionally continue with the next tab Service Dependencies.
The Service Dependencies tab in the Manage Host Service page allows you to add or remove service dependencies.
The Dependency field is service dependency template that defines a master service relationship on this host. Select from the list a host where the Master service resides.
Optionally continue with the next tab Service Externals.
Externals are used to create configuration files for external applications, such as the GroundWork Distributed Monitoring Agent (GDMA). A service external provides the detail relevant to a particular service, that will end up in such a file.
The service externals you manage in this tab originate as generic service externals, established under Configuration > Nagios Monitoring > Services > Service externals. Once you apply a service external to a particular host service, that copy becomes independently modifiable. You can choose to manage changes to the copies from the generic service external, or modify the individual copies and manage them separately.
Deleting Host Services
There is an easy way to delete one, many, or all host services. The Delete Host Services option is used to delete services that are no longer in use. Services can be removed from one or many hosts.
- Go to Configuration > Nagios Monitoring > Hosts > Delete host services.
- Next, select a service from the drop-down menu. Once a service is selected all its associated hosts will be listed. Check the box for each host you want the selected service removed.
- Click Delete, or to remove the selected service from all hosts choose Check All and then Delete.