Can't Apply Configuration in Core Config Manager

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't Apply Configuration in Core Config Manager

Post by abrist »

Are you editing these files from vi/nano, or are you editing them on a windows box? (through filezilla/cygwin spc/etc)?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dc7772000
Posts: 27
Joined: Fri Mar 01, 2013 7:08 pm

Re: Can't Apply Configuration in Core Config Manager

Post by dc7772000 »

I'm using vim on the linux (centos) side.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Can't Apply Configuration in Core Config Manager

Post by mguthrie »

Can you zip up and post your /usr/local/nagiosxi/html/config.inc.php file? If your server is public, then you can send it in a PM.
dc7772000
Posts: 27
Joined: Fri Mar 01, 2013 7:08 pm

Re: Can't Apply Configuration in Core Config Manager

Post by dc7772000 »

Here's the file
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Can't Apply Configuration in Core Config Manager

Post by mguthrie »

Ah, found the problem, you've got two entries in config.inc.php.

Line 9

Code: Select all

// base url
$cfg['base_url']="/nagiosxi";  // do not include http(s) or host name - this is the base from "http://localhost"
$cfg['use_https']=true;
and line 24

Code: Select all

// force http/https
$cfg['use_https']=false;  // determines whether cron jobs and other scripts will force the use of HTTPS instead of HTTP
The second entry is overriding the first.
dc7772000
Posts: 27
Joined: Fri Mar 01, 2013 7:08 pm

Re: Can't Apply Configuration in Core Config Manager

Post by dc7772000 »

I commented out the extra line and it appears to be working. Thanks for all your help.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Can't Apply Configuration in Core Config Manager

Post by mguthrie »

You bet!
Locked