Error apply configuration in Nagios XI GUI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ernie
Posts: 5
Joined: Tue Nov 17, 2015 10:58 pm

Error apply configuration in Nagios XI GUI

Post 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?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Error apply configuration in Nagios XI GUI

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
kyang

Re: Error apply configuration in Nagios XI GUI

Post 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.
ryan.low
Posts: 4
Joined: Tue Nov 07, 2017 1:24 am

Re: Error apply configuration in Nagios XI GUI

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error apply configuration in Nagios XI GUI

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ryan.low
Posts: 4
Joined: Tue Nov 07, 2017 1:24 am

Re: Error apply configuration in Nagios XI GUI

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error apply configuration in Nagios XI GUI

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ernie
Posts: 5
Joined: Tue Nov 17, 2015 10:58 pm

Re: Error apply configuration in Nagios XI GUI

Post by ernie »

Thank You Nagios Support.

Fixed the problem with upgrade NagiosXI to the latest version. :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Error apply configuration in Nagios XI GUI

Post by tmcdonald »

Great to hear! Did you have further (related) questions or are we good to lock this up?
Former Nagios employee
Locked