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.
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".
When I look at hostgroups.cfg only NOC-DHCP is listed under Windows Servers, none of the others appear. (see screenshot below)
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
Host Group Inconsistency
-
ryan_breneman
- Posts: 22
- Joined: Mon Nov 19, 2012 3:50 pm
- Location: Lancaster, PA
Host Group Inconsistency
You do not have the required permissions to view the files attached to this post.
Re: Host Group Inconsistency
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.
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
Got it, that makes sense! Thanks for the explanation.