hosts and hostgroups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jonarnar
Posts: 7
Joined: Fri Jul 06, 2012 12:21 pm

hosts and hostgroups

Post by jonarnar »

Hi,

What is the difference between adding a host into a hostgroup (by editing the hostgroup) and adding a hostgroup to the host config (by editing the host) ?

We have a dozen or so mssql servers which are all members of the same hostgroup, we've been fiddling around with overriding some service checks with
new warning/critical thresholds and it seems that service checks that are bound to a hostgroup that is added to the host itself it overrides the service checks
that belong to hostgroups that the host was member of ...

Is there an easy way to see how/why service checks are run for a host (that is which hostgroup the service check belongs to).

And on the matter of overriding checks, when will the overriding features of nagiosql 3.2 be integrated into nagios xi ?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: hosts and hostgroups

Post by mguthrie »

What is the difference between adding a host into a hostgroup (by editing the hostgroup) and adding a hostgroup to the host config (by editing the host) ?
No difference other than configuration convenience. When Nagios builds the object configuration data it all gets compiled down into a single hostgroup definition.

service checks that are bound to a hostgroup that is added to the host itself it overrides the service checks
that belong to hostgroups that the host was member of ...
My guess is that when the configuration gets rolled into the objects.cache file, one of the duplicates is being overwritten.
Is there an easy way to see how/why service checks are run for a host (that is which hostgroup the service check belongs to).
Not that I can think of at the moment, when you apply a service definition to a hostgroup Nagios will compile that list down to a list of single host->service definitions. So essentially the UI doesn't know *how* the service assignments were applied.
And on the matter of overriding checks, when will the overriding features of nagiosql 3.2 be integrated into nagios xi ?
By overriding do you mean group "exclusions"? We've actually forked NagiosQL 3.0 into the Nagios CCM project that will be shipping with our 2012 release of Nagios XI. Exclusions has not currently been added yet as a feature. Our goal was initial stability with the CCM, and then from there we'd work on new features.
http://labs.nagios.com/2012/04/13/nagio ... full-beta/
jonarnar
Posts: 7
Joined: Fri Jul 06, 2012 12:21 pm

Re: hosts and hostgroups

Post by jonarnar »

Thanks for the response, clears things up a bit.
No difference other than configuration convenience.
Hope you'll update the user interface to make that clear in the future ;) it would greatly enhance usability to
see same information if you select host or hostgroup - makes no sence really to have to check both places
to figure out how a host was assigned to a hostgroup.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: hosts and hostgroups

Post by mguthrie »

The new version of the Nagios CCM indicates when there is a host->hostgroup relationship or a hostgroup->host relationship for the exact reason you described : )
Locked