Page 1 of 1
Error apply configuration in Nagios XI GUI
Posted: Wed May 23, 2018 10:03 pm
by ernie
Hi,
i'm getting the following errors when "applying configuration" in Nagios XI GUI .
-Waiting for configuration verification....
-Backend login to the Core Config Manager failed.
when i click to configuration snapshots, there is no config error.
I able to add hosts and services but
sync missed. it means, the new configuration not applied.
as 1st troubleshooting, I run command ./reconfigure_nagios.sh and the output is:
URL:
http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies
http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword="xx"' -O nagiosql.login--2018-05-24 10:46:29--
http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://localhostnagiosql/admin.php [following]
--2018-05-24 10:46:29--
http://localhostnagiosql/admin.php
Resolving localhostnagiosql... failed: Name or service not known.
wget: unable to resolve host address `localhostnagiosql'
NAGIOSQL LOGIN FAILED!
Nagios XI Version : 2012R2.5
any hint?
Re: Error apply configuration in Nagios XI GUI
Posted: Thu May 24, 2018 9:46 am
by eloyd
The hint is your URL for Nagios is missing the trailing / and so
http://localhost/nagiosql is becoming
http://localhostnagiosql, which is probably not a valid host.
Re: Error apply configuration in Nagios XI GUI
Posted: Thu May 24, 2018 4:58 pm
by kyang
Thanks
@eloyd!
Resolving localhostnagiosql... failed: Name or service not known.
wget: unable to resolve host address `localhostnagiosql'
Nagios XI Version : 2012R2.5
I would also like to mention that you are using a very old Nagios XI version.
I'm not sure how many nodes you are monitoring, but that may be something to consider.
Re: Error apply configuration in Nagios XI GUI
Posted: Sun May 27, 2018 11:15 pm
by ryan.low
kyang wrote:Thanks
@eloyd!
Resolving localhostnagiosql... failed: Name or service not known.
wget: unable to resolve host address `localhostnagiosql'
Nagios XI Version : 2012R2.5
I would also like to mention that you are using a very old Nagios XI version.
I'm not sure how many nodes you are monitoring, but that may be something to consider.
We are simulating the upgrade process but we are hitting some problems during upgrade R2012 to R2014. the configurations looks fine before we hit the upgrade.
Checking host groups...
Checked 31 host groups.
Checking service groups...
Checked 2 service groups.
Checking contacts...
Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or unreachable options as well
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
Checked 34 contacts.
Checking contact groups...
Checked 7 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 140 commands.
Checking time periods...
Checked 38 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: 287
Total Errors: 0
but I comes to error and upgrade failed later.
Website:
http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 14)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 135)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line24)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line126)
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/xxx.cfg', starting on line 109)
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.
Any idea?
Re: Error apply configuration in Nagios XI GUI
Posted: Tue May 29, 2018 8:44 am
by scottwilkerson
ryan.low wrote:We are simulating the upgrade process but we are hitting some problems during upgrade R2012 to R2014. the configurations looks fine before we hit the upgrade.
I cannot guarantee that the R2014 installers work, as a matter of fact I am almost certain they do not.
I would strongly suggest going to 5.4.13 as it also has fixed for known security vulnerabilities.
Re: Error apply configuration in Nagios XI GUI
Posted: Wed May 30, 2018 9:42 pm
by ryan.low
scottwilkerson wrote:ryan.low wrote:We are simulating the upgrade process but we are hitting some problems during upgrade R2012 to R2014. the configurations looks fine before we hit the upgrade.
I cannot guarantee that the R2014 installers work, as a matter of fact I am almost certain they do not.
I would strongly suggest going to 5.4.13 as it also has fixed for known security vulnerabilities.
Agreed. We are target to upgrade to 5.4.13. But during the upgrade process, NagiosXI need to upgrade version by version. from R2012 to R2014 then V5.x the latest. The upgrade process stops at R2014.
Else is there any alternative or guidelines to migrate the existing nodes and data from R2012 to fresh V5?
Thanks.
Re: Error apply configuration in Nagios XI GUI
Posted: Thu May 31, 2018 7:22 am
by scottwilkerson
ryan.low wrote:Agreed. We are target to upgrade to 5.4.13. But during the upgrade process, NagiosXI need to upgrade version by version. from R2012 to R2014 then V5.x the latest. The upgrade process stops at R2014.
Thanks.
This is an incorrect statement... you can go straight to the latest 5.4.13
Re: Error apply configuration in Nagios XI GUI
Posted: Sun Jun 10, 2018 7:12 pm
by ernie
Thank You Nagios Support.
Fixed the problem with upgrade NagiosXI to the latest version.

Re: Error apply configuration in Nagios XI GUI
Posted: Mon Jun 11, 2018 9:37 am
by tmcdonald
Great to hear! Did you have further (related) questions or are we good to lock this up?