Problem Hostgroups in Nagiosxi
Problem Hostgroups in Nagiosxi
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
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
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Problem Hostgroups in Nagiosxi
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Problem Hostgroups in Nagiosxi
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
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
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Problem Hostgroups in Nagiosxi
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Problem Hostgroups in Nagiosxi
Hi @benjaminsmith
I send a PM.
Thanks for the help
I send a PM.
Thanks for the help
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Problem Hostgroups in Nagiosxi
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:
2. Repair the database:
3. Go to Configure > Tools > Config File Management > Restart Nagios Core
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
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Problem Hostgroups in Nagiosxi
Hi @benjaminsmith
I followed the steps, but I do not see the hostgroups.
I send a PM with profile.zip
Thank you
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
You still have some crashed db tables. Let's try repairing the database again. Run the following commands:
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):
In addition to this, I noticed that in your profile, the number of hosts/services is shown as zero...
Code: Select all
/usr/local/nagiosxi/scripts/repairmysql.sh nagios
/usr/local/nagiosxi/scripts/repairmysql.sh nagiosql
Code: Select all
tail /var/log/mysqld.log
Try restarting services (after the db repair is complete) to see if this is going to fix your issue:Total Hosts: 0
Total Services: 0
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!
Re: Problem Hostgroups in Nagiosxi
Hi @lmiltchev
I followed the steps more than once, but don´t see the hostgroups
I send PM
Thanks for the help
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
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:
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!