Page 3 of 3
Re: Configuration Wizards - can not add new machine
Posted: Fri Jan 19, 2018 6:53 am
by Eurocash
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?
Re: Configuration Wizards - can not add new machine
Posted: Fri Jan 19, 2018 9:30 am
by tgriep
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,
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Then login to the XI GUI and ruin the wizard and post back the output of the tail command.
Re: Configuration Wizards - can not add new machine
Posted: Fri Jan 19, 2018 9:56 am
by Eurocash
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:
cmdsubsys.txt
Re: Configuration Wizards - can not add new machine
Posted: Fri Jan 19, 2018 3:59 pm
by npolovenko
@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:
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 start
Re: Configuration Wizards - can not add new machine
Posted: Mon Jan 22, 2018 5:16 am
by Eurocash
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):
2018-01-22 11_04_29-root@komov430__usr_local_nagios_var.png
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).
Re: Configuration Wizards - can not add new machine
Posted: Mon Jan 22, 2018 1:32 pm
by npolovenko
@Eurocash, Ok, please make sure that ndo2db is running right now though:
Code: Select all
service nagios start
service ndo2db start
service nagios status
service ndo2db status
Next, please open a "Core Configurations Manager", and in Tools column(on the left) click on the Config File Management. And then:
Code: Select all
1. Write Config Files
2. Delete Files
3. Write Config Files
4. Verify Files
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.
Re: Configuration Wizards - can not add new machine
Posted: Tue Jan 23, 2018 2:30 am
by Eurocash
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?
Re: Configuration Wizards - can not add new machine
Posted: Tue Jan 23, 2018 11:48 am
by npolovenko
@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.
Re: Configuration Wizards - can not add new machine
Posted: Wed Jan 24, 2018 8:54 am
by Eurocash
Ok, so I have opened support ticket. Thanks for help.
Re: Configuration Wizards - can not add new machine
Posted: Wed Jan 24, 2018 11:09 am
by dwhitfield
locking due to ticket