Page 2 of 3

Re: Waiting for configuration verification stuck

Posted: Thu Jan 04, 2018 12:20 pm
by npolovenko
@emsadmin, I see that you also have some errors in your configuration files.

Code: Select all

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
Error: Template '' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting on line 271)
   Error processing object config files!
Would you be able to revert the system to the latest working snapshot in Core Configurations Manager? Click on restore button next to a verified snapshot in the past.
restore.png
After that please verify the configuration one more time with the following command:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: Waiting for configuration verification stuck

Posted: Mon Jan 15, 2018 3:02 am
by emsadmin
Please check the screen, I don't have any snapshot to be restored ==

Re: Waiting for configuration verification stuck

Posted: Mon Jan 15, 2018 2:39 pm
by npolovenko
@emsadmin, Could you send in your Nagios XI System Profile so I can review it?
To 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 with your next post. Or you could upload it to a cloud storage of your choice and share a link with me in a pm.

Re: Waiting for configuration verification stuck

Posted: Tue Jan 16, 2018 3:32 pm
by npolovenko
@emsadmin, It's interesting because the profile came very incomplete. Did you delete anything from it? How did you install the XI? Can you try the following commands:

Code: Select all

service nagios start
service nagios status
Did you see any errors when you ran the commands?
Also, before we start fixing this problem, let me ask if you'd consider using our preinstalled-xi OVA instead: https://www.nagios.com/downloads/nagios-xi/microsoft/
This might save you time and get you going in shortest time, especially if you haven't really done many configurations yet.

Re: Waiting for configuration verification stuck

Posted: Thu Jan 18, 2018 9:04 pm
by emsadmin
Hello,

Thanks for the reply. I didn't delete anything, I followed the pure offline installation guideline.

Our machine is Linux that can't use the preinstalled-xi OVA.

[root@lab006 09:55]$ service nagios start
Starting nagios:
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Template '' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting on line 271)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

[root@lab006 09:55]$ service nagios status
No lock file found in /usr/local/nagios/var/nagios.lock

Re: Waiting for configuration verification stuck

Posted: Fri Jan 19, 2018 1:20 pm
by npolovenko
@emsadmin, I can see the problem. Nagios process is down, and it will not start because of some configuration error. Would you be able to connect to your Nagios server using WinSCP or FileZilla, make a copy of the /usr/local/nagios/etc/ folder, put it in a zip file and upload here, so that I can examine the configuration files?


***/etc/ folder was received and shared with the support team***

Re: Waiting for configuration verification stuck

Posted: Sun Jan 21, 2018 9:56 pm
by emsadmin
Hello npolovenko,

I left the private message to you, please have a look, thanks.

Re: Waiting for configuration verification stuck

Posted: Mon Jan 22, 2018 3:34 pm
by dwhitfield
sanity check. What's the output of ll /usr/local/nagios/etc/? Also, did you import configs from Core or another XI system? If so, what version? Have you ever modified the configs by hand (not using the API or CCM)?

Re: Waiting for configuration verification stuck

Posted: Mon Jan 22, 2018 8:43 pm
by emsadmin
dwhitfield wrote:sanity check. What's the output of ll /usr/local/nagios/etc/? Also, did you import configs from Core or another XI system? If so, what version? Have you ever modified the configs by hand (not using the API or CCM)?
I just sent the private message with attachment to npolovenko for "/usr/local/nagios/etc/".

I didn't import any configs from Core or others and I didn't modify configs by hand. Thank you.

Re: Waiting for configuration verification stuck

Posted: Tue Jan 23, 2018 5:29 pm
by npolovenko
@emsadmin, In Nagios XI web browser interface please navigate to the Configure -> Core Configurations Manager menu. In the left column under Tools select Config File Management. In that menu please click, in order 1) Write Configs 2)Delete Files 3) Write Configs(yes, again) 4) Verify Files. Next, in the left column under Quick tools you'll find the Apply Configuration menu, go there and click on Apply Configuration button.
https://support.nagios.com/kb/article.php?id=144
Did that solve the problem?