Page 1 of 3
Metrics does not show all members of hostgroup
Posted: Mon Apr 13, 2015 7:42 am
by cloudcom
Hi,
I have two hostgroups as linux servers and windows servers. Host group summary shows their status:
hostgroup.PNG
But under the "metrics" tab, i can not see all member's information when i select linux server as a hostgroup:
metrics.PNG
Why doesn't it show disk usage informations of all linux servers?
What is the problem?
Nagios Core 4.0.5
Nagios XI 2014R1.0
Re: Metrics does not show all members of hostgroup
Posted: Mon Apr 13, 2015 9:14 am
by tmcdonald
What user are you logged in as? Is it a full Admin or does it have only partial rights?
Re: Metrics does not show all members of hostgroup
Posted: Tue Apr 14, 2015 6:49 am
by cloudcom
The user is nagiosadmin itself.
I can see all information of linux servers under the "service detail" section but "metrics" can not fetch status from all linux servers
Re: Metrics does not show all members of hostgroup
Posted: Tue Apr 14, 2015 1:11 pm
by ssax
I was able to replicate this, you need to make sure that all the hosts have that service attached to it and that the first check is not pending (completed).
Here's an example:
metric1.png
You can see that localhost has all of the services.
localhost_copy_1 has current load and root partition.
The rest just have current load.
So when I run the metrics for disk usage, only localhost and localhost_copy_1 show up.
When I run the metrics for load, all of them will show up.
If I ran the metrics for swap only localhost will show up, like in your example.
Re: Metrics does not show all members of hostgroup
Posted: Wed Apr 15, 2015 3:50 am
by cloudcom
I know ofcourse. It should be as you sad.
All servers have already basic services: memory usage, cpu usage, disk usage, swap usage
hostgroup2.PNG
Let's filter by memory usage
metrics2.PNG
Notice that the user is nagiosadmin.
Re: Metrics does not show all members of hostgroup
Posted: Wed Apr 15, 2015 11:58 am
by lmiltchev
Do you see the memory usage (for Linux hosts) under the "Summary" tab in Metrics component if you don't filter by hostgroup? How did you set up these hosts/services (via the "Linux Server" wizard, "NRPE" wizard, custom plugins, etc.)?
Re: Metrics does not show all members of hostgroup
Posted: Thu Apr 16, 2015 3:47 am
by cloudcom
No, I can not see linux servers in Metrics component when i dont filter by hostgroup.
I have added linux servers via linux server snmp wizard. I checked their hostgroup configuration and they are included in linux-servers hostgroup. I can already see them in hostgroup status as i mentioned before. Just metrics component can not show the linux servers. It does not matter whether i filter by hostgroup or not.
Re: Metrics does not show all members of hostgroup
Posted: Thu Apr 16, 2015 1:24 pm
by lmiltchev
It seems like this is a bug with the Metrics component. We have our developers looking into this, so I expect to see this bug fixed in the next version of the component. We will do some internal testing after this is done but you are welcome to test it as well (prior to the official release) if you wish.
Re: Metrics does not show all members of hostgroup
Posted: Fri Apr 17, 2015 6:57 am
by cloudcom
Hımm.it is interesting that anyone has not realized this problem so far.
I checked the metrics component. Its version is 1.2. Sure, we can use the updated version.
Do you have any prediction when it will be ready?
Re: Metrics does not show all members of hostgroup
Posted: Fri Apr 17, 2015 1:56 pm
by jdalrymple
No matter how hard I try I cannot replicate your situation.
If you don't filter the results do you see the hosts that are missing? Mind you hostgroup is a "filter" - it will never add results to what you see only take away