Page 1 of 2

Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 11:31 am
by jcmanous
After a successful install/login, I attempted to monitor an SNMP based linux machine and received the error:

"Backend login to the Core Config Manager failed."

I've followed the instructions listed in the FAQ to reset the credentials but to no avail. Any ideas?

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 11:43 am
by mguthrie
Can you send us the output from the following FAQ?
http://support.nagios.com/wiki/index.ph ... n_Problems

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 11:46 am
by jcmanous

Code: Select all

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=CarC85IS' -O nagiosql.login--2013-02-05 11:45:48--  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://localhost/nagiosql/admin.php [following]
--2013-02-05 11:45:48--  http://localhost/nagiosql/admin.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: ânagiosql.loginâ

    0K .....                                                 100%  368M=0s

2013-02-05 11:45:48 (368 MB/s) - ânagiosql.loginâsaved [5286/5286]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
    [0] => 6kr62iio.tmp.cfg
    [1] => fccmsdb1.franklin.uga.edu.cfg
    [2] => h3edovhc.tmp.cfg
    [3] => hgmguo8i.tmp.cfg
    [4] => holhou3i.tmp.cfg
    [5] => ipkakvcv.tmp.cfg
    [6] => p3srfajr.tmp.cfg
    [7] => pp6impdj.tmp.cfg
    [8] => t6f0ulej.tmp.cfg
    [9] => vg9g0sdc.tmp.cfg
)
IMPORTING /usr/local/nagios/etc/import/6kr62iio.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/6kr62iio.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:48--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... ..                                          7.56M=0.002s

2013-02-05 11:45:48 (7.56 MB/s) - ânagiosql.import.monitoringâsaved [13159]

IMPORTING /usr/local/nagios/etc/import/fccmsdb1.franklin.uga.edu.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/fccmsdb1.franklin.uga.edu.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:48--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... ..                                          2.41M=0.005s

2013-02-05 11:45:48 (2.41 MB/s) - ânagiosql.import.monitoringâsaved [13036]

IMPORTING /usr/local/nagios/etc/import/h3edovhc.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/h3edovhc.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:48--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... ..                                          2.43M=0.005s

2013-02-05 11:45:48 (2.43 MB/s) - ânagiosql.import.monitoringâsaved [12877]

IMPORTING /usr/local/nagios/etc/import/hgmguo8i.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/hgmguo8i.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:48--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... ..                                          7.54M=0.002s

2013-02-05 11:45:49 (7.54 MB/s) - ânagiosql.import.monitoringâsaved [12749]

IMPORTING /usr/local/nagios/etc/import/holhou3i.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/holhou3i.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:49--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... ..                                          7.76M=0.002s

2013-02-05 11:45:49 (7.76 MB/s) - ânagiosql.import.monitoringâsaved [12621]

IMPORTING /usr/local/nagios/etc/import/ipkakvcv.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/ipkakvcv.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:49--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... ..                                          7.44M=0.002s

2013-02-05 11:45:49 (7.44 MB/s) - ânagiosql.import.monitoringâsaved [12493]

IMPORTING /usr/local/nagios/etc/import/p3srfajr.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/p3srfajr.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:49--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... ..                                          7.30M=0.002s

2013-02-05 11:45:49 (7.30 MB/s) - ânagiosql.import.monitoringâsaved [12365]

IMPORTING /usr/local/nagios/etc/import/pp6impdj.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/pp6impdj.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:49--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... .                                           7.28M=0.002s

2013-02-05 11:45:49 (7.28 MB/s) - ânagiosql.import.monitoringâsaved [12237]

IMPORTING /usr/local/nagios/etc/import/t6f0ulej.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/t6f0ulej.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:49--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... .                                           7.37M=0.002s

2013-02-05 11:45:49 (7.37 MB/s) - ânagiosql.import.monitoringâsaved [12109]

IMPORTING /usr/local/nagios/etc/import/vg9g0sdc.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/vg9g0sdc.tmp.cfg' -O nagiosql.import.monitoring
--2013-02-05 11:45:49--  http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ

    0K .......... .                                           7.29M=0.002s

2013-02-05 11:45:49 (7.29 MB/s) - ânagiosql.import.monitoringâsaved [11981]

RESETTING PERMS
SETUID ROOT OK
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=CarC85IS' -O nagiosql.login--2013-02-05 11:45:49--  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://localhost/nagiosql/admin.php [following]
--2013-02-05 11:45:49--  http://localhost/nagiosql/admin.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: ânagiosql.loginâ

    0K .....                                                 100%  268M=0s

2013-02-05 11:45:49 (268 MB/s) - ânagiosql.loginâsaved [5286/5286]

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2013-02-05 11:45:49--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7096 (6.9K) [text/html]
Saving to: ânagiosql.export.monitoringâ

    0K ......                                                100%  416M=0s

2013-02-05 11:45:50 (416 MB/s) - ânagiosql.export.monitoringâsaved [7096/7096]

WRITE CONFIGS SUCCESSFUL!
--2013-02-05 11:45:50--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7400 (7.2K) [text/html]
Saving to: ânagiosql.export.additionalâ

    0K .......                                               100%  453M=0s

2013-02-05 11:45:50 (453 MB/s) - ânagiosql.export.additionalâsaved [7400/7400]

CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeAdditional=Go' -O nagiosql.export.additional
OUTPUT: 
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
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/xitemplates.cfg'...
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/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/fccmsdb1.franklin.uga.edu.cfg'...
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/fccmsdb1.franklin.uga.edu.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
        Checked 9 services.
Checking hosts...
        Checked 2 hosts.
Checking host groups...
        Checked 1 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 108 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
RET: 0
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 11:54 am
by lmiltchev
Can you try to apply configuration once more from the Web interface and let us know if it fails again? Thanks!

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 11:56 am
by jcmanous
I have done so several times since I posted that and it fails each time.

Something curious - As I'm sure you know, there's Core Config and a "Legacy" Core Config. It appears, the "Legacy" version works fine in that I can pull up hosts, services, etc. whereas the "new" CCM doesn't pull up anything when I try to check the same settings.

Not sure if it's related, but I did notice that.

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 12:05 pm
by mguthrie
Run the following commands to resolve the CCM issue:

Code: Select all

touch /usr/local/nagiosxi/etc/components/ccm_config.inc.php
chown apache.nagios /usr/local/nagiosxi/etc/components/ccm_config.inc.php
This is a high priority issue that will be fixed in our 1.6 release later this week.

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 12:06 pm
by scottwilkerson
Do you have version 2012R1.5b ?

If so this could be related to a bug that was introduced in that version. Our developer are working for a fix to that and will be releasing a fix shortly

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 12:14 pm
by jcmanous
That did not resolve the CCM issue.

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 1:23 pm
by scottwilkerson
Do you have version 2012R1.5b ?

Re: Backend login to the Core Config Manager failed

Posted: Tue Feb 05, 2013 2:18 pm
by jcmanous
I have 2012R1.5. There's no 'b' on that.