Configuration Wizards - can not add new machine
Re: Configuration Wizards - can not add new machine
Ok so I have checked several other things.
I had cleared some tables of DB:
'TRUNCATE TABLE nagios_logentries'
'TRUNCATE TABLE nagios_notifications'
Now I have 3hours + uptime with this configuration and Kernel Message Queue is working as expected. No NDO errors at this moment.
But still adding new host with Configuration Wizard is not working. Adding with Core Config Manager is working as expected.
Also I have found something interesting. There was no cfg file for host, but at:
/usr/local/nagios/share/perfdata/ was catalog with host added by Configuration Wizard and inside I could see _HOST_.xml file with RTA, IP, hostname and several other info.
Can you tell me how Configuration Wizards work? Where to search some scripts or commands that they are executing?
I have updated several templates for Configuration Wizards - still cannot add new host with Wizards.
I have not updated Nagios to the newest version (5.4.12), still on 5.4.11.
I have checked exact version of CentOS:
1) Nagios XI - CentOS Linux release 7.3.1611 (Core)
2) DB - CentOS Linux release 7.4.1708 (Core)
Can diffrent OS version cause problems?
I had cleared some tables of DB:
'TRUNCATE TABLE nagios_logentries'
'TRUNCATE TABLE nagios_notifications'
Now I have 3hours + uptime with this configuration and Kernel Message Queue is working as expected. No NDO errors at this moment.
But still adding new host with Configuration Wizard is not working. Adding with Core Config Manager is working as expected.
Also I have found something interesting. There was no cfg file for host, but at:
/usr/local/nagios/share/perfdata/ was catalog with host added by Configuration Wizard and inside I could see _HOST_.xml file with RTA, IP, hostname and several other info.
Can you tell me how Configuration Wizards work? Where to search some scripts or commands that they are executing?
I have updated several templates for Configuration Wizards - still cannot add new host with Wizards.
I have not updated Nagios to the newest version (5.4.12), still on 5.4.11.
I have checked exact version of CentOS:
1) Nagios XI - CentOS Linux release 7.3.1611 (Core)
2) DB - CentOS Linux release 7.4.1708 (Core)
Can diffrent OS version cause problems?
Re: Configuration Wizards - can not add new machine
What the wizards do is to create the Host and Service checks for you and they store them in the MYSQL database. Then when you click the finish button, it runs the reconfigure_nagios.sh script in the /usr/local/nagiosxi/scripts folder which exports them to the running config and restarts nagios.
What I think is happening is the hosts and service configs are not getting saved to the MYSQL database so they will not show up.
Try this, can you login to the XI server as root and run this command,
Then login to the XI GUI and ruin the wizard and post back the output of the tail command.
What I think is happening is the hosts and service configs are not getting saved to the MYSQL database so they will not show up.
Try this, can you login to the XI server as root and run this command,
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Configuration Wizards - can not add new machine
Ok I have run the tail command. Added machine with configuration wizards and additional services were not added. Today I Have defined this machine with only check host alive service - nothing more was added, host is not duplicated.
Here is requested log:
Here is requested log:
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Configuration Wizards - can not add new machine
@Eurocash, The latest log file shows that you have some duplicate service definitions. Do you have any pre-saved core configuration snapshots? Would you be able to revert to a working snapshot?
Also, please run the following commands:
Also, please run the following commands:
Code: Select all
service ndo2db stop
service nagios stop
mv /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo2db.lock.bak
mv /usr/local/nagios/var/ndo.sock /usr/local/nagios/var/ndo.sock.bak
service nagios start
service ndo2db startAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Configuration Wizards - can not add new machine
Unfortunately we do not have any pre-saved core configuration snapshots.
We were migrating from old nagios to nagios xi. This migration was made as external service. We will definetly go for complaiant and tell this external firm to remove duplicates.
But even on this configuration before offloading db to external server Configuration Wizards were working as expected. Adding new hosts was possible.
At /usr/local/nagios/var/ there is no such files (ndo2db.lock,ndo.sock): Also find command does not show files you mentioned - I think it's because service ndo2db stop. If service is running files are there.
Kernel Message Queue still working good after last changes (friday).
We were migrating from old nagios to nagios xi. This migration was made as external service. We will definetly go for complaiant and tell this external firm to remove duplicates.
But even on this configuration before offloading db to external server Configuration Wizards were working as expected. Adding new hosts was possible.
At /usr/local/nagios/var/ there is no such files (ndo2db.lock,ndo.sock): Also find command does not show files you mentioned - I think it's because service ndo2db stop. If service is running files are there.
Kernel Message Queue still working good after last changes (friday).
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Configuration Wizards - can not add new machine
@Eurocash, Ok, please make sure that ndo2db is running right now though:
Next, please open a "Core Configurations Manager", and in Tools column(on the left) click on the Config File Management. And then:
If these steps go through successfully, please go to the Quick tools section and then Apply Configuration. Click on Apply Configuration.
After that please try the wizard one more time.
Code: Select all
service nagios start
service ndo2db start
service nagios status
service ndo2db status
Code: Select all
1. Write Config Files
2. Delete Files
3. Write Config Files
4. Verify FilesAfter that please try the wizard one more time.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Configuration Wizards - can not add new machine
Still it is the same. Confiugration Wizards are not adding new hosts.
Maybe I'm doing something wrong. Maybe I should request for remote assist session?
Maybe I'm doing something wrong. Maybe I should request for remote assist session?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Configuration Wizards - can not add new machine
@Eurocash, That would make sense. Please follow this link to open a support ticket: https://support.nagios.com/tickets/
You may include the link to this forum thread inside the ticket. Our support techs will examine everything and get in touch with you to schedule a session.
You may include the link to this forum thread inside the ticket. Our support techs will examine everything and get in touch with you to schedule a session.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Configuration Wizards - can not add new machine
Ok, so I have opened support ticket. Thanks for help.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Configuration Wizards - can not add new machine
locking due to ticket