Hostgroup Allocations

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Hostgroup Allocations

Post by belvdr »

NagiosXI 2012R2.8c:

If I edit/add a host and allocate a hostgroup from the host definition, I cannot remove it when editing the hostgroup itself. When editing the hostgroup, the host is not listed as a member and is grayed out on the left.

This seems counterintuitive, as I should be able to modify hostgroups in either place.

Thoughts?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Hostgroup Allocations

Post by tmcdonald »

That does seem counter-intuitive. Have you filed a feature request for it?
Former Nagios employee
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Hostgroup Allocations

Post by belvdr »

I haven't because I cannot figure out how to do so. :)

EDIT: Nevermind. I figured it out.
Last edited by belvdr on Thu Jan 30, 2014 2:12 pm, edited 1 time in total.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Hostgroup Allocations

Post by BanditBBS »

Wow, can't believe I am going to say this....

While I agree that it seems weird, there is a difference. In one case you are adding a host to a hostgroup and the other case you are adding a hostgroup to a host. They both give the desired end effect, but are completely different things. Scott explained this once to me very well(I think it was Scott) that made me understand and maybe even accept the difference.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Hostgroup Allocations

Post by belvdr »

BanditBBS wrote:Wow, can't believe I am going to say this....

While I agree that it seems weird, there is a difference. In one case you are adding a host to a hostgroup and the other case you are adding a hostgroup to a host. They both give the desired end effect, but are completely different things. Scott explained this once to me very well(I think it was Scott) that made me understand and maybe even accept the difference.
Coming from a database perspective, there should be no difference as it's just a relation. But, as perspectives go, everyone has one and they are usually different. :)
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Hostgroup Allocations

Post by BanditBBS »

belvdr wrote:
BanditBBS wrote:Wow, can't believe I am going to say this....

While I agree that it seems weird, there is a difference. In one case you are adding a host to a hostgroup and the other case you are adding a hostgroup to a host. They both give the desired end effect, but are completely different things. Scott explained this once to me very well(I think it was Scott) that made me understand and maybe even accept the difference.
Coming from a database perspective, there should be no difference as it's just a relation. But, as perspectives go, everyone has one and they are usually different. :)
I agree with that as well. The difference here is, sure, they could change the way the database is written, but then what about the 2 different ways to write the nagios core files? I can't recall if there is zero effect difference in the 2 different relations...someone with more knowledge than me will have to jump in. I was just throwing out what I've been told before.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Hostgroup Allocations

Post by belvdr »

BanditBBS wrote:I agree with that as well. The difference here is, sure, they could change the way the database is written, but then what about the 2 different ways to write the nagios core files? I can't recall if there is zero effect difference in the 2 different relations...someone with more knowledge than me will have to jump in. I was just throwing out what I've been told before.
No arguments here, but it makes my head hurt.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Hostgroup Allocations

Post by sreinhardt »

Purely from a DB perspective, there is very little difference. However from a nagios and flat file configuration perspective, they are vastly different and really only end up limiting you instead of extending options.

To start, the lowest level of reasoning why this is not available, is that we attempt to disallow modification of items, outside of the scope of the item you are presently modifying. So when modifying a host, you should have access to all of its features and options, however you cannot modify it's service definitions or hostgroup definitions, outside of adding or removing a hostgroup.

As bandit mentioned, this opens the realm of us managing your configurations for you, instead of offering the full abilities of nagios configurations to you. Imagine modifying a hostgroup and adding a new host to it, how do we as XI developers know whether you intended that to be on the host or group configuration file? Take that one step further into templates, how do we know if you want to attempt to add something to a template, group in the template, or the end object inheriting these settings?

Additionally the addition of modifying items outside the scope of the current object you are on, opens up the question of when and where do you stop access to items that are not in this direct object. If you are editing a host, do you only give access to hostgroups and service groups, does it extend to relevant services, or on to other hosts that use the same settings\groups\templates?

Basically, it get's really messy to manage really quick, and we all would have to agree on what object the settings you are currently modifying actually apply to. It is much simpler for all to make the design decision to limit access to the single object you are currently working on, and yet still provide a way to indicate on other objects that others are included or excluded already from this one. I hope that explained it in somewhat of a fashion that makes sense, without hurting your head further. :D
Last edited by sreinhardt on Thu Jan 30, 2014 2:50 pm, edited 1 time in total.
Reason: my english is not so good today...
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: Hostgroup Allocations

Post by belvdr »

Hi Spenser,

Maybe I'm missing a core concept. From a configuration or operational perspective, what's the difference if the host is connected to a hostgroup by the host config or the hostgroup config?

Tom
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Hostgroup Allocations

Post by tmcdonald »

There is no functional difference. It all has to do with configuration management. There are arguments for and against each.
Former Nagios employee
Locked