Monarch Management of Nagios Hosts


--- GW IMAGE NOT DISPLAYED --- Managing Hosts

Copyright 2006 GroundWork Open Source, Inc. (“GroundWork”).
All rights reserved. Use is subject to GroundWork commercial license.

Contents

Managing Hosts


--- GW IMAGE NOT DISPLAYED --- Managing Host Detail


  1. Select Hosts from the Configuration menu options.
  2. Expand the Hosts drop-down menu.
  3. Select a Host to manage.
  4. In the Host Detail screen, enter the properties (see Table 5.6.1a. below).
  5. Select Save if changes were made. Select Delete to remove the Host. Select Rename to change the name of the Host.

    Note: To copy an existing Host select Clone from the Hosts options. This will let you name a new Host, provide the IP address, and then attach an existing Host’s properties. You can then edit and save the new Host. To find an existing Host you can use the Search option under Hosts. Here you can enter the Host name or address. A list of matching Hosts will be displayed. Typing in just one or a series of characters will provide you with all Hosts that start with the specified sequence.

    Figure 5.6.1a. Host Detail

    --- GW IMAGE NOT DISPLAYED ---

    Table 5.6.1a. Host Detail

    Name [Required] Name of Host.
    Alias [Required] This directive is used to define a longer name or description used to identify the Host. It is provided in order to allow you to more easily identify a particular Host.
    Address [Required] This directive is used to define the address of the Host. Normally, this is an IP address, although it could really be anything you want (so long as it can be used to check the status of the Host). You can use a FQDN to identify the Host instead of an IP address, but if DNS Services are not available this could cause problems. When used properly, the $HOSTADDRESS$ macro will contain this address. Note: If you do not specify an address directive in a Host definition, the name of the Host will be used as its address. A word of caution about doing this, however – if DNS fails, most of your Service checks will fail because the plugins will be unable to resolve the Host name.
    Host Template [Required] Select the Host template most suitable for this Host.
    Set Inheritance Inherit all values from template: Checked = sets all directives to inherit values from the selected template. Uncheck left checkbox on directives to override template values.

Managing Hosts


--- GW IMAGE NOT DISPLAYED --- Managing Host Profiles


  1. Select Hosts from the Configuration menu options.
  2. Expand the Hosts drop-down menu.
  3. Select a Host to manage.
  4. Select the Profile tab.
  5. In the Profile screen, enter the properties (see Table 5.6.2a. below).

    Figure 5.6.2a. Profile

    --- GW IMAGE NOT DISPLAYED ---

    Table 5.6.2a. Profile

    Host Name [Required] Name of Host.
    Host Profile [Optional] Host Profiles can be used to aid the design and management of Hosts.
    Service Profiles Select a Service profile for this Host. This sets up a default set of Services.
    Services After making changes, use the refresh button to update the Service list. Replace Existing Services will remove all Services from this Host and replace them with those listed here. Merge with Existing Services will leave any existing Services unchanged. Assigning a Host profile here creates the association so that the Host can be managed from the profile, but has no other effect on the Host configuration.

Managing Hosts

--- GW IMAGE NOT DISPLAYED --- Managing Host – Parents


  1. Select Hosts from the Configuration menu options.
  2. Expand the Hosts drop-down menu.
  3. Select the Host to be managed.
  4. Select the Parents tab.
  5. In the Parents screen, enter the properties (see Table 5.6.3a. below).
  6. Select Save to create the new relationships.

    Figure 5.6.3a. Parents

    --- GW IMAGE NOT DISPLAYED ---

    Table 5.6.3a. Parents

    Host Name [Required] Name of Host selected.
    Parents [Optional] Assign this Host one or more parents. Parent child relationships may also be managed via ‘Hosts -> Parent Child’.

Managing Hosts

--- GW IMAGE NOT DISPLAYED --- Managing Host – Host Groups


  1. Select Hosts from the Configuration menu options.
  2. Expand the Hosts drop-down menu.
  3. Select a Host to manage.
  4. Select the Hostgroups tab.
  5. In the Hostgroups screen, enter the properties (see Table 5.6.4a. below).
  6. Select Save to create the Host Group arrangement.

    Figure 5.6.4a. Hostgroups

    --- GW IMAGE NOT DISPLAYED ---

    Table 5.6.4a. Hostgroups

    Host Name [Required] Name of Host selected.
    Hostgroups [Optional] Assign this Host one or more Host Groups. Hostgroups may also be managed via ‘Hosts -> Hostgroups’.

Managing Hosts

--- GW IMAGE NOT DISPLAYED --- Managing Host – Escalations


  1. Select Hosts from the Configuration menu options.
  2. Expand the Hosts drop-down menu.
  3. Select a Host to manage.
  4. Select the Escalations tab.
  5. In the Escalations screen, enter the properties (see Table 5.6.5a. below).
  6. Select Save to add or remove Escalation.

    Figure 5.6.5a. Escalations

    --- GW IMAGE NOT DISPLAYED ---

    Table 5.6.5a. Escalations

    Host Name [Required] Name of Host selected.
    Host Escalation [Optional] Select an escalation tree appropriate for this Host. To avoid amplified Notifications (i.e. multiple notifications for the same event), a Host escalation assigned to this Host should not also be assigned to a Host Group in which the Host is a member.
    Service Escalation [Optional] Select an escalation tree appropriate for Services on this Host. When a Service escalation is assigned to a Host, all Services on that Host use the same escalation tree. To avoid amplified notifications (i.e. multiple notifications for the same event), a Service escalation assigned to a Service name should not also be assigned to the Host or the Host Group.

Managing Hosts

--- GW IMAGE NOT DISPLAYED --- Managing Host – Services


  1. Select Hosts from the Configuration menu options.
  2. Expand the Hosts drop-down menu.
  3. Select a Host to manage.
  4. Select the Services tab.
  5. In the Services screen, you will see the Host name, and the Services that are currently associated with the Host. These Services are displayed after selecting the Service from the drop-down box and selecting Add Services You can Add, Modify, and Remove Services for this Host. use the Ctrl and Shift keys to select several Services at once.

    Note: Managing Services from this page will in all likelihood put the Host out of sync with its Service Profiles. After making changes, use caution when applying Profile to this Host.

    Figure 5.6.6a. Services

    --- GW IMAGE NOT DISPLAYED ---

Multiple Instance Service Checks

The classic Configuration behavior is the single instance Check. A Service is assigned to a Host and it performs a single Check. To perform a second Check using the same Check Command required the configuration of a second Service. For example, the Check command check_disk is configured on the Service by arguments to specify the partition on the drive to check. So, to check drives C and D on a Host, a Service for each would be created (e.g. check_disk_c and check_disk_d) and assigned to the Host. This works well if you wish to monitor drives C and D the same way across many Hosts, but suppose the host is unique? The new alternative is to create a single generic Service, check_disk, assign it to a Host, add instances for each drive, and then set the arguments accordingly.

If this check is the same as other checks on this host, where the check command is the same, all of the settings on the service detail page are the same, and only the arguments differ, you can define a set of checks here without creating new services. For example, a disk check can be defined for multiple partitions, or an snmp check on a network device can be defined for multiple interfaces. Enter a name to add a single instance or enter a range of numbers to add a list of numbered instances prefixed with an underscore. The instance names are appended to the service name so we recommend using an underscore for the first character in the name.

While in the Services tab as in Figure 5.6.6a. above, to access the Service Detail screen for any Service select details next to the Service Name. Alternatively you can directly access the Manage Host Service screen by selecting the Service from the navigation tree under a Host name, Figure 5.6.6b..

Figure 5.6.6b. Multiple Instance Service Checks

--- GW IMAGE NOT DISPLAYED ---