Hostgroups show empty

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kiddbios
Posts: 54
Joined: Wed Feb 01, 2012 12:57 pm

Hostgroups show empty

Post by kiddbios »

Hello,

For some reason in the core config manager several of our hostgroups show empty. This is both when viewed from a specific host in the "Hosts" link or the "Host Groups" link. I've done a "killall nagios" and restarted Nagios, as well as refreshed the browser cache. The groups still appear to be working properly. I have host groups assigned to services and those services are still showing up as being monitored on the hosts that are in the host groups. This will become problematic should we ever need to remove a server from a host group and it's associated services.

Thanks,

Brad
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Hostgroups show empty

Post by scottwilkerson »

Host groups can be added to host, services or other hostgroups.

If you add the hostgroup to services, you would see should see it in the CCM under Services -> Modify Service -> Host groups*
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kiddbios
Posts: 54
Joined: Wed Feb 01, 2012 12:57 pm

Re: Hostgroups show empty

Post by kiddbios »

Sorry. Let me clarify.

Let's say that I have a Host named Host1. I also have Host Group2 and Service3. I go into the properties for Host1 and assign it to Host Group2. I go into the properties of Service3 and assign Host Group2 there as well. Now, if I go into Host Group 2 and click on the properties to show which Hosts are assigned to to Host Group2, it doesn't show any hosts. If I go to Host1 and click on the properties to see which Host Groups it is assigned to, none show up. However, if I look at Service3, Host Group2 shows up as being assigned. If I go into the service view in Nagios XI (not CCM) I see that Host1 is monitoring Service3. If I needed to remove Host1 from monitoring Service3, there would be no way to do so, because I can't see that Host1 is a member of Host Group2. I would have to remove Host Group2 from Service3, but if there are other hosts in Host Group2 it is going to remove it for all of them as well.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Hostgroups show empty

Post by scottwilkerson »

I now understand what you are saying, and what you describe is the expected behavior.

If you add a hostgroup to a service, it will add that service to all of the hosts in the hostgroup.

I know the developers are working on a way to negate a host from a service, but I don't have an ETA when that may be available in XI.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kiddbios
Posts: 54
Joined: Wed Feb 01, 2012 12:57 pm

Re: Hostgroups show empty

Post by kiddbios »

I want it to add all of the hosts in the Host Group to the service. The problem is the removal of the Host from the Host Group, because the Host is not showing up as being in the Host Group.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Hostgroups show empty

Post by scottwilkerson »

trying to replicate your setup I have been unsucessful. If the host is not part of the hostgroup any longer as you indicate here
kiddbios wrote:Now, if I go into Host Group 2 and click on the properties to show which Hosts are assigned to to Host Group2, it doesn't show any hosts. If I go to Host1 and click on the properties to see which Host Groups it is assigned to, none show up.
The only way for this service to show up for a host is if you have the host specified in the Host* field for the service as well...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kiddbios
Posts: 54
Joined: Wed Feb 01, 2012 12:57 pm

Re: Hostgroups show empty

Post by kiddbios »

OK. Let's take the service aspect out of it, because I think that might be adding confusion.

Here is a screenshot of a host that I created today, on which you can see it is a member of the Windows Server host group:
Host.jpg
Here is the screenshot of that host group. As you can see, the host does not show up in the host group view. This is the problem I am trying to solve.
Host Group.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroups show empty

Post by lmiltchev »

People manage hostgroups differently. You can add a host to a hostgroup by going to:

Core Cofig Manager->Monitoring->Hosts->Add New->Common Settings tab->Host groups->Modify->Save->Save

or

Core Cofig Manager->Monitoring->Hosts Groups->Modify->Members->Modify->Save->Save

If you use the first method, you won't see this particular host as a member of this hostgroup under "Members" (Host Group Management).
If you use the second method, you won't see this particular host as a member of this hostgroup under "Host groups" (Host Management).

However, when you apply configuration, this host will be added to the hostgroup (no matter which method you used) and you will be able to see it, when you go to:

Home->Details->Hostgroup Overview

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked