Waiting for configuration verification stuck

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Waiting for configuration verification stuck

Post 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
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
emsadmin
Posts: 10
Joined: Fri Dec 01, 2017 1:35 am

Re: Waiting for configuration verification stuck

Post by emsadmin »

Please check the screen, I don't have any snapshot to be restored ==
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: Waiting for configuration verification stuck

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Waiting for configuration verification stuck

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
emsadmin
Posts: 10
Joined: Fri Dec 01, 2017 1:35 am

Re: Waiting for configuration verification stuck

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Waiting for configuration verification stuck

Post 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***
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
emsadmin
Posts: 10
Joined: Fri Dec 01, 2017 1:35 am

Re: Waiting for configuration verification stuck

Post by emsadmin »

Hello npolovenko,

I left the private message to you, please have a look, thanks.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Waiting for configuration verification stuck

Post 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)?
emsadmin
Posts: 10
Joined: Fri Dec 01, 2017 1:35 am

Re: Waiting for configuration verification stuck

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Waiting for configuration verification stuck

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked