Difference in number of hosts in hostgroups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Difference in number of hosts in hostgroups

Post by mejokj »

Hi Team,

While looking at the "windows server list" hostgroup under Host Group Management, we can see 163 hosts in manage hosts. But while added the same hostgroup (windows server list) in the helpdesk dashboard as host status summary it showed only a total of 156 hosts. Attached screenshot for your reference.

So there is a difference of 7 hosts between the two sections. Can you help me to figure out the issue?

Thanks
You do not have the required permissions to view the files attached to this post.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Difference in number of hosts in hostgroups

Post by dchurch »

Could you please me PM a System Profile zip? I can diagnose further if I can take a look at the data.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Difference in number of hosts in hostgroups

Post by mejokj »

Hi,

I have shared with you the profile file as PM.

Thanks
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Difference in number of hosts in hostgroups

Post by benjaminsmith »

Hi,

Thank you. We received your profile and are currently reviewing the logs and we'll update you shortly.

Best Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Difference in number of hosts in hostgroups

Post by mejokj »

Hi,

can you update on this issue

Thanks
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Difference in number of hosts in hostgroups

Post by benjaminsmith »

HI,

Sorry for the delay. In the Configuration Manager, it will show all of the hosts, both active and inactive. Can you verify that the 7 missing hosts have not been deactivated? I believe that maybe the issue here.

If not, the database log was not in the profile, can you retrieve that form the server and post it to the thread.

Thanks,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Difference in number of hosts in hostgroups

Post by mejokj »

Hi,

I have removed all deactivated hosts from hostgroup. But the number of hosts showing under host group management reduced to 154. And under dashboard, it is showing 157 hosts.

Still, I can see some differences in the number of hosts.

I think the database is not getting updated the information correctly.

I have sent you the database log as a private message. Please have a look and let us know.

Thanks
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Difference in number of hosts in hostgroups

Post by benjaminsmith »

Hi @mejokj

The database log is showing crashed tables, so please run the following command as root from the CLI.

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
If the issue persists, are you logged in as the nagiosadmin?

Run the following command to dump the nagiosql database, and I will try to replicate this on a test server. Thanks, Benjamin

Code: Select all

mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Difference in number of hosts in hostgroups

Post by mejokj »

Hello We have repair and it shows successful. I will send log via chat.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Difference in number of hosts in hostgroups

Post by benjaminsmith »

Hi @mejokj,

Sounds good. If the original issue still persists, please send me the nagiosql database as well.

Code: Select all

mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked