Clarification of Understanding - Host Group Hierarchy

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cylindric
Posts: 40
Joined: Wed May 29, 2013 9:50 am

Clarification of Understanding - Host Group Hierarchy

Post by cylindric »

Hi folks,

I'm just organising a new Nagios setup for our infrastructure, and I'm uncertain if what I'm seeing is expected, or due to a misunderstanding on my part.

I have a bunch of servers that I'm putting into Host Groups for ease of management, and also to sort them on the front-end, so I have something a bit like this:

Code: Select all

All Servers
    Windows Servers
        Product A Servers
        Product B Servers
    Linux Servers
        Some Other Servers
And then some servers in those groups:

Code: Select all

Server A1: Product A Servers
Server A2: Product A Servers
Server B3: Product B Servers
Server B4: Product B Servers
Server O5: Some Other Servers
Server O6: Some Other Servers
Now, when I go to my "Host Groups" > "Grid" page, I see all servers under the heading for "All Servers" and the heading for their assigned HG.

Is that normal? It seems to make the page at least twice as long as it needs to be, and a single service outage appears like many outages - one for each HG the server is in.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Clarification of Understanding - Host Group Hierarchy

Post by slansing »

The following is similar to what you should be seeing:
hostgroupsgrid.jpg
Can you provide a screenshot to better illustrate what you are trying to point out?
cylindric
Posts: 40
Joined: Wed May 29, 2013 9:50 am

Re: Clarification of Understanding - Host Group Hierarchy

Post by cylindric »

What I have is this (I've named the HG here to show the top-down order)

You can see that all four servers appear twice, once in their "b-xxxx" host-group as they should, but also "rolled-up" into their HG's parent HG.

I'm using nconf to generate the config.

Here's some config:

Code: Select all

define hostgroup {
                hostgroup_name                        a-top
                alias                                 Top
                hostgroup_members                     b-web,b-other
}

define hostgroup {
                hostgroup_name                        b-web
                alias                                 Web
                members                               web6401,web6402
}

define hostgroup {
                hostgroup_name                        b-other
                alias                                 Other
                members                               mta6402,vc02
}
Attachments
Host groups
Host groups
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Clarification of Understanding - Host Group Hierarchy

Post by slansing »

Do you by chance have the "hostgroups" directive listed in any of those hosts? If you have them defined in the hostgroups configuration, then you do not need the hostgroups listed in the host config files, or visa versa.
Locked