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
Hostgroups show empty
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Hostgroups show empty
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*
If you add the hostgroup to services, you would see should see it in the CCM under Services -> Modify Service -> Host groups*
Re: Hostgroups show empty
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Hostgroups show empty
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.
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.
Re: Hostgroups show empty
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Hostgroups show empty
trying to replicate your setup I have been unsucessful. If the host is not part of the hostgroup any longer as you indicate here
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...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.
Re: Hostgroups show empty
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: 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.
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: 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.
You do not have the required permissions to view the files attached to this post.
Re: Hostgroups show empty
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.
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!