Host Group Inconsistency

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ryan_breneman
Posts: 22
Joined: Mon Nov 19, 2012 3:50 pm
Location: Lancaster, PA

Host Group Inconsistency

Post by ryan_breneman »

I'm having some problems with putting hosts into host groups, and having the core config manager display it correctly.

For example, I have a host called LICSDC, this host is a member of DHCP Servers, DNS Servers, LIC, Print Servers, and Windows Servers. Now when I look at host settings for LICSDC, and go into Manage Hostgroups the only group I see on the right is Windows Servers (see screenshot below). The other groups mentioned above are greyed out on the left hand side, but not displayed on the right where they should be.
licsdc_hostgroup.JPG
Now if I go to hostgroup settings for Windows Servers, and go to Manager Hosts, the only host I see is NOC-DHCP (see screenshot below). LICSDC appears in the list on the left, but again like above it is greyed out and if I hover the mouse over it says "Object has a relationship established elsewhere".
windowsservers_hostgroup.JPG
When I look at hostgroups.cfg only NOC-DHCP is listed under Windows Servers, none of the others appear. (see screenshot below)
hostgroup_cfg.jpg
The strange part is groups appear to be working correctly, because I can open various hostgroup views and have everything appear correctly, however I would like to know why it is displaying like this. Hopefully I explained this well enough, let me know if there is anything else I can shed light on.

Thanks!
Ryan
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Host Group Inconsistency

Post by mguthrie »

Hostgroup assignments can be created from either method below:
host->hostgroup
hostgroup->host

From a configuration management perspective, the way these are assigned might have different implications when adding and deleting hosts. The difference in how these assignments are made needs to be maintained in the Core Config Manager. Some people may manage their hostgroups with all hostgroup->host assignments, but an example I can think of where it would need to be host->hostgroup would be if you use service->hostgroup assignments, and you add and remove a lot of hosts from that hostgroup. You would most definitely want to use the host->hostgroup assignment for easier maintenance because then you could just directly delete that host without any dependent relationships.

You'll find the other hostgroup assignments in the .cfg files in the /usr/local/nagios/etc/hosts/<hostname>.cfg file.
ryan_breneman
Posts: 22
Joined: Mon Nov 19, 2012 3:50 pm
Location: Lancaster, PA

Re: Host Group Inconsistency

Post by ryan_breneman »

Got it, that makes sense! Thanks for the explanation.
Locked