Page 1 of 5

Problem Hostgroups in Nagiosxi

Posted: Wed Jan 16, 2019 10:39 am
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

Re: Problem Hostgroups in Nagiosxi

Posted: Wed Jan 16, 2019 3:19 pm
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.

Re: Problem Hostgroups in Nagiosxi

Posted: Thu Jan 17, 2019 3:22 am
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

Re: Problem Hostgroups in Nagiosxi

Posted: Thu Jan 17, 2019 11:55 am
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.

Re: Problem Hostgroups in Nagiosxi

Posted: Mon Jan 21, 2019 4:20 am
by roccoss
Hi @benjaminsmith

I send a PM.

Thanks for the help

Re: Problem Hostgroups in Nagiosxi

Posted: Mon Jan 21, 2019 6:01 pm
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

Re: Problem Hostgroups in Nagiosxi

Posted: Tue Jan 22, 2019 3:57 am
by roccoss
Hi @benjaminsmith

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

Thank you

Re: Problem Hostgroups in Nagiosxi

Posted: Tue Jan 22, 2019 4:58 pm
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

Re: Problem Hostgroups in Nagiosxi

Posted: Wed Jan 23, 2019 7:55 am
by roccoss
Hi @lmiltchev

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

Thanks for the help

Re: Problem Hostgroups in Nagiosxi

Posted: Wed Jan 23, 2019 11:01 am
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