I've searched this forum, gone through the suggestions that have previosly been made, and am still experiencing the Waiting for configuration verification . . . never stopping issue.
Nagios XI
Nagios Core 3.2.3.
Fresh build on CentOS 5.6
Not a VM
Port 80
If I configure a new host from within CCM/Monitoring/Hosts and fill in all values that have an astrex next to them, I will get the never ending Waiting for configuration verification issue then if I go to CCM/Tools/Write Config Files and push the four buttons from top down, the config will stick. If I try to add a new host via "Run the monitoring wizard" then go into CCM/Tools/Write Config Files and push the four buttons from top down the config will not apply.
I've tried this step on the localhost/console as well as from an Internet PC remotely and on a PC on the LAN. Same results.
Any ideas? Permission issue?
thanks
AWS
Another "Waiting for configuration verification" post
Re: Another "Waiting for configuration verification" post
Try looking through these solutions first and see if any resolve your issue. If not we'll keep digging from there.
http://support.nagios.com/wiki/index.ph ... n_Problems
http://support.nagios.com/wiki/index.ph ... n_Problems
Re: Another "Waiting for configuration verification" post
Thanks for your help.
Went into CCM/Configuration Snapshots page. I have two configs listed:
Date Snapshot Result File Actions
2011-05-13 15:51:56 Config Ok 1305327116.tar.gz
2011-05-13 07:34:04 Config Ok 1305297244.tar.gz
(today is 5/19). I would have expected to see more configs since I've been (attempting) adding/removing hosts. None of the configs are colored red.
Below is the 5/13 15:51 config:
This config has three hosts of the same company single server. At this time, the hosts were added in Nagios but I was unaware of it because they were not showing up in the XI part of Nagios, just the Core. Since then I have removed those hosts (shouldn't there have been a config added at that point?) and have tried multiple times to recreate from within XI but have not been successful.
I've opened /etc/php.ini in vi and performed the suggested memory and script time-out changes. (per http://support.nagios.com/wiki/index.ph ... n_Problems)
Working down the page about Configuration Problems...
Stopped the Nagios service, deleted the localhost.cfg (only files in the directories) file in /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services... restarted Nagios ... whoops, shouldn't have done that. Nagios won't start.
Now I have a configuration issue. Reapplied the config, restarted Nagios. Started and no errors or warning reported.
Any more ideas?
AWS
Went into CCM/Configuration Snapshots page. I have two configs listed:
Date Snapshot Result File Actions
2011-05-13 15:51:56 Config Ok 1305327116.tar.gz
2011-05-13 07:34:04 Config Ok 1305297244.tar.gz
(today is 5/19). I would have expected to see more configs since I've been (attempting) adding/removing hosts. None of the configs are colored red.
Below is the 5/13 15:51 config:
Code: Select all
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Aethena.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/AGA.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Aethena Gynecology Associates.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Aethena.cfg'...
Processing object config file '/usr/local/nagios/etc/services/AGA.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Aethena Gynecology Associates.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 59 services.
Checking hosts...
Checked 4 hosts.
Checking host groups...
Checked 2 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 2 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 66 commands.
Checking time periods...
Checked 8 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
I've opened /etc/php.ini in vi and performed the suggested memory and script time-out changes. (per http://support.nagios.com/wiki/index.ph ... n_Problems)
Working down the page about Configuration Problems...
Stopped the Nagios service, deleted the localhost.cfg (only files in the directories) file in /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services... restarted Nagios ... whoops, shouldn't have done that. Nagios won't start.
Code: Select all
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.Now I have a configuration issue. Reapplied the config, restarted Nagios. Started and no errors or warning reported.
Any more ideas?
AWS
Re: Another "Waiting for configuration verification" post
Using the Configuration Wizard and adding a Win server, is there a (temp?) config file that I can view/edit/save before I click on the Apply button on the final step page?
.... found it under /usr/local/nagios/etc/import. Two files get created <hostname>.cfg and <8-letterrandomfilename>.tmp.cfg
.... found it under /usr/local/nagios/etc/import. Two files get created <hostname>.cfg and <8-letterrandomfilename>.tmp.cfg
Re: Another "Waiting for configuration verification" post
So I went to CCM/Tools/Import Config Files then in the Import File list box I located and selected the host I have been trying to add (for days...). Clicked the Import button and the app successfully imported "Aethena.cfg". Then I went to CCM/Tools/Write Config Files and clicked the buttons:
Write monitoring data: OK
Write additional data: OK
Check configuration files: error
Looks like I'm not getting a host config file setup for the new monitored host at "/usr/local/nagios/etc/services/". How do I create one of these files?
Another weird thing is that if I go to CCM/Monitoring/Services and filter to show only "Aethena" services, Sync Status reads "Synced". If I then go to CCM/Monitoring/Hosts, the same host, Aethena, shows Sync Status as Sync Missed
Thanks
AWS
Write monitoring data: OK
Write additional data: OK
Check configuration files: error
Code: Select all
Error: Could not find any host matching 'Aethena' (config file '/usr/local/nagios/etc/services/Aethena.cfg', starting on line 301)
Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services/Aethena.cfg', starting on line 301)
Error processing object config files!
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Aethena.cfg'...
Error: Could not find any host matching 'Aethena' (config file '/usr/local/nagios/etc/services/Aethena.cfg', starting on line 301)
Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services/Aethena.cfg', starting on line 301)
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.
Another weird thing is that if I go to CCM/Monitoring/Services and filter to show only "Aethena" services, Sync Status reads "Synced". If I then go to CCM/Monitoring/Hosts, the same host, Aethena, shows Sync Status as Sync Missed
Thanks
AWS
Re: Another "Waiting for configuration verification" post
Try this:
killall -9 nagios
service nagios start
If you get config error messages when attempting to restart, remove any recent configs you've added in the CCM, then use the Write Config Tool to write to file, and then verify from the web interface, and restart nagios from that page.
If you're using the Write Config Tool to restart nagios, no configuration snapshot will be made. If you use Apply Configuration and the config fails, then take a look at that bad snapshot to find where the error is (feel free to PM that to me if you need to ).
Also, make sure all files are removed from the import directory. Nagios XI will attempt to import anything in that directory every time "Apply Configuration" is selected. If it's a bad config that someone has placed in that directory, XI will continue to try and import it and will continue to roll back to a previous config every time you try and restart XI. Importing configs into XI should be done according to the following docs:
http://assets.nagios.com/downloads/nagi ... ngfromcore
killall -9 nagios
service nagios start
If you get config error messages when attempting to restart, remove any recent configs you've added in the CCM, then use the Write Config Tool to write to file, and then verify from the web interface, and restart nagios from that page.
If you're using the Write Config Tool to restart nagios, no configuration snapshot will be made. If you use Apply Configuration and the config fails, then take a look at that bad snapshot to find where the error is (feel free to PM that to me if you need to ).
Also, make sure all files are removed from the import directory. Nagios XI will attempt to import anything in that directory every time "Apply Configuration" is selected. If it's a bad config that someone has placed in that directory, XI will continue to try and import it and will continue to roll back to a previous config every time you try and restart XI. Importing configs into XI should be done according to the following docs:
http://assets.nagios.com/downloads/nagi ... ngfromcore
Re: Another "Waiting for configuration verification" post
I just reinstalled CentOS and Nagios XI from scratch... all the issues I was having have been resolved.
Thanks for your contribution.
AWS
Thanks for your contribution.
AWS
Re: Another "Waiting for configuration verification" post
OK, glad it's up and running for you. Let us know if you need any further assistance.