Problem Hostgroups in Nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
roccoss
Posts: 25
Joined: Tue Sep 02, 2014 11:47 am

Problem Hostgroups in Nagiosxi

Post by roccoss »

Hi,

I have configured hostgroups with the CCM, but hostgroups do not appear in NagiosXI, but if they appear in Nagios Core.
The file hostgroups.cfg contains the information, and in CCM also appears the information of the created hostgroups!!

What can happen?

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

Re: Problem Hostgroups in Nagiosxi

Post by benjaminsmith »

Hi @roccoss,

Let's delete, re-write and apply the configuration and let us know if you get any errors during verification.

The following steps will force the config files to be written to disk, allowing you to investigate the problem. The following steps include a delete step. You will not lose any configs as only the flat config files are deleted, the original configs still exist in the database.

Open CCM
Tools > Config File Management
Click the Delete Files button
It will say "Successfully deleted all Host / Service Config Files"
Click the Write Configs Button
It will show an output of all the files it creates, in large deployments this step may take a long time .
Click the Verify Files button

If everything checks out, go to the Quick Tools menu and select Apply Configuration. If you have any errors please correct them in the CCM and try again or post them to this thread.

Thanks.
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!
roccoss
Posts: 25
Joined: Tue Sep 02, 2014 11:47 am

Re: Problem Hostgroups in Nagiosxi

Post by roccoss »

Hi @benjaminsmith

I followed the steps you say, but don´t see the hostgroups
The verification only shows some warning of duplicate services

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

Re: Problem Hostgroups in Nagiosxi

Post by benjaminsmith »

Hi @roccoss,

Please login to the Nagios Core interface (http://ipaddress/nagios) upload a screen shot of the hostgroups and also PM your system profile.

To Send Over a System ProfileTo send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue.

Thanks.
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!
roccoss
Posts: 25
Joined: Tue Sep 02, 2014 11:47 am

Re: Problem Hostgroups in Nagiosxi

Post by roccoss »

Hi @benjaminsmith

I send a PM.

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

Re: Problem Hostgroups in Nagiosxi

Post by benjaminsmith »

Hi @roccoss,

In your logs I noticed some errors for crashed database tables and a few logs related to permissions issues. Please run the following, re-start and check your XI interface for the hostgroups.

Log in as root and run the following from the command line.

1. Reset the file system permissions:

Code: Select all

/usr/local/nagiosxi/scripts/reset_config_perms.sh
2. Repair the database:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
3. Go to Configure > Tools > Config File Management > Restart Nagios Core
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!
roccoss
Posts: 25
Joined: Tue Sep 02, 2014 11:47 am

Re: Problem Hostgroups in Nagiosxi

Post by roccoss »

Hi @benjaminsmith

I followed the steps, but I do not see the hostgroups.
I send a PM with profile.zip

Thank you
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Problem Hostgroups in Nagiosxi

Post by lmiltchev »

You still have some crashed db tables. Let's try repairing the database again. Run the following commands:

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
/usr/local/nagiosxi/scripts/repairmysql.sh nagiosql
After you run these two commands, check the mysqld.log for errors (you may need to run the repair on the db more than once):

Code: Select all

tail /var/log/mysqld.log
In addition to this, I noticed that in your profile, the number of hosts/services is shown as zero...
Total Hosts: 0
Total Services: 0
Try restarting services (after the db repair is complete) to see if this is going to fix your issue:

Code: Select all

service mysqld restart
service nagios stop
service ndo2db restart
service nagios start
Be sure to check out our Knowledgebase for helpful articles and solutions!
roccoss
Posts: 25
Joined: Tue Sep 02, 2014 11:47 am

Re: Problem Hostgroups in Nagiosxi

Post by roccoss »

Hi @lmiltchev

I followed the steps more than once, but don´t see the hostgroups
I send PM

Thanks for the help
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Problem Hostgroups in Nagiosxi

Post by lmiltchev »

Have you tried to configure Nagios XI with SSL, and perhaps missed a step? Please make sure you followed all of the steps, outlined in the document below:

https://assets.nagios.com/downloads/nag ... s%20XI.pdf

Also, go to Admin > System Settings > General tab, and show us a screenshot of this page. We need to the what you have in the Program URL and External URL fields.

Run the following command and show the output:

Code: Select all

cat /etc/hosts
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked