Page 1 of 1

Apply Configuration Fails, server was renamed & pwd reset

Posted: Fri Feb 21, 2014 4:08 am
by mattx3210
Requested info:

1) What version of Nagios XI are you using? 2012R2.9
2) Linux Distribution and version? CentOS release 6.5 (Final)
3) 32 or 64bit? 64bit
4) VMware Image or Manual Install of XI? Manual Install of XI
5) Are there special configurations on your system? Yes
a) I cloned this from a clean install of another Nagios XI server, renamed, re-IPed
b) I had to run ./reset_nagiosadmin_password.php --password=nagiosxi because I couldn't login
c) I reset ONLY the New Config Manager Admin password (leaving other three Sub-System Credentials alone)

Problem:

I am attempting to create a new command in Core Configuration Manager. When I click Apply Configuration for the new changes to take effect I get two errors:
1) Waiting for configuration verification....
2) Backend login to the Core Config Manager failed.

I followed the instructions here http://support.nagios.com/wiki/index.ph ... n_Problems
and am attaching cmd.txt & reconfig.txt

Additional Information:

When I go into Manage Config Access, there are two users:
1) nagiosadmin
2) nagiosxi

# cat /usr/local/nagiosxi/html/config.inc.php | grep -m 2 -A5 "\"nagiosql\" => array"
"nagiosql" => array(
"dbtype" => 'mysql',
"dbserver" => 'localhost',
"user" => 'nagiosql',
"pwd" => 'n@gweb',
"db" => 'nagiosql',
--
"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
),


# cat /var/www/html/nagiosql/config/settings.php | grep password
password = n@gweb

Re: Apply Configuration Fails, server was renamed & pwd rese

Posted: Fri Feb 21, 2014 11:53 am
by mattx3210
I was able to solve the issue myself with the help of this post by lmiltchev: http://support.nagios.com/forum/viewtop ... =10#p52882

Code: Select all

cd /usr/local/nagiosxi/scripts
chown nagios.nagios nagiosql.cookies nagiosql.export.additional nagiosql.export.monitoring nagiosql.import.monitoring nagiosql.login

Re: Apply Configuration Fails, server was renamed & pwd rese

Posted: Fri Feb 21, 2014 12:38 pm
by sreinhardt
Fantastic, thanks for letting us know!