Re: Backend login to the Core Config Manager failed
Posted: Mon Feb 11, 2013 5:14 pm
I recognize the database credentials in /var/www/html/nagiosql/config/settings.php to be the ones that I set.
Here is the contents of that file (with password removed).
<?php
exit;
;
?>
;
; Nagios CCM. Based on NagiosQL (c) 2008, 2009 by Martin Willisegger
[db]
server = localhost
port = 3306
database = nagiosql
username = nagiosql
password = XxXxXxXxXx
[common]
install = passed
The /usr/local/nagiosxi/html/config.inc.php file contains these four userid/password sections, below.
"pnp" => array(
"perfdata_dir" => "/usr/local/nagios/share/perfdata",
"share_dir" => "/usr/local/nagios/share/pnp",
"direct_url" => "/nagios/pnp",
"username" => 'nagiosxi', // don't change this!
"password" => 'nagiosadmin', // this gets reset when security credentials are reset after installation
),
"nagiosql" => array(
"dir" => "/var/www/html/nagiosql",
"direct_url" => "/nagiosql",
"username" => 'nagiosxi', // don't change this!
"password" => 'n@gweb', // this gets reset when security credentials are reset after installation
),
"nagvis" => array(
"share_dir" => "/usr/local/nagios/share/nagvis",
"direct_url" => "/nagios/nagvis",
"username" => 'nagiosadmin', // don't change this!
"password" => 'nagiosadmin', // this gets reset when security credentials are reset after installation
),
and, further down in that file,
// HTTP BASIC AUTHENTICATION INFO -- USED BY SUBSYSTEM
$cfg['use_basic_authentication']=false; // is HTTP Basic authentication being used? if so, set the two variables below...
$cfg['subsystem_basic_auth_username']='nagiosxi'; // subsystem credentials
$cfg['subsystem_basic_auth_password']='somepassword';
I would make the assumption that the username does not match (nagiosxi -vs- nagiosql), and, none of the passwords match "XxXxXxXxXx"
Here is the contents of that file (with password removed).
<?php
exit;
;
?>
;
; Nagios CCM. Based on NagiosQL (c) 2008, 2009 by Martin Willisegger
[db]
server = localhost
port = 3306
database = nagiosql
username = nagiosql
password = XxXxXxXxXx
[common]
install = passed
The /usr/local/nagiosxi/html/config.inc.php file contains these four userid/password sections, below.
"pnp" => array(
"perfdata_dir" => "/usr/local/nagios/share/perfdata",
"share_dir" => "/usr/local/nagios/share/pnp",
"direct_url" => "/nagios/pnp",
"username" => 'nagiosxi', // don't change this!
"password" => 'nagiosadmin', // this gets reset when security credentials are reset after installation
),
"nagiosql" => array(
"dir" => "/var/www/html/nagiosql",
"direct_url" => "/nagiosql",
"username" => 'nagiosxi', // don't change this!
"password" => 'n@gweb', // this gets reset when security credentials are reset after installation
),
"nagvis" => array(
"share_dir" => "/usr/local/nagios/share/nagvis",
"direct_url" => "/nagios/nagvis",
"username" => 'nagiosadmin', // don't change this!
"password" => 'nagiosadmin', // this gets reset when security credentials are reset after installation
),
and, further down in that file,
// HTTP BASIC AUTHENTICATION INFO -- USED BY SUBSYSTEM
$cfg['use_basic_authentication']=false; // is HTTP Basic authentication being used? if so, set the two variables below...
$cfg['subsystem_basic_auth_username']='nagiosxi'; // subsystem credentials
$cfg['subsystem_basic_auth_password']='somepassword';
I would make the assumption that the username does not match (nagiosxi -vs- nagiosql), and, none of the passwords match "XxXxXxXxXx"