[root@nagios nagiosxi]# ./upgrade
PHP Warning: mysql_pconnect(): Access denied for user 'ndoutils'@'localhost' (using password: YES) in /usr/local/src/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysql.inc.php on line 383
Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, please contact Nagios support.<br /><br />Run the following from the CLI as root to attempt to repair the DB<br /><br /><pre>/usr/local/nagiosxi/scripts/repair_databases.sh</pre>Checking required prereqs...
Please wait...
OLD VERSION: 405
Loaded plugins: fastestmirror
Determining fastest mirrors
<snip>
I did change the default ndoutils password earlier so it would explain the error but it is unclear to me if the script was able to get past this message or if I really do need to run /usr/local/nagiosxi/scripts/repair_databases.sh? From what I can tell things appear to be OK but it would be nice to have confirmation this was not an issue.
<snip>Sourceguardian extension already in php.ini
Copying over new XI directory...
/bin/chown: cannot access `/usr/local/nagiosxi/tmp/*.zip': No such file or directory
chmod: cannot access `/usr/local/nagiosxi/tmp/*.zip': No such file or directory
Building latest perms binary...
Updating NagiosQL..
<snip>
If you have errors, you will need to run the repair before re-running the upgrade.
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.
I did change the default ndoutils password earlier so it would explain the error but it is unclear to me if the script was able to get past this message or if I really do need to run /usr/local/nagiosxi/scripts/repair_databases.sh?
Where did you change the password? What is the password that you have in the "/usr/local/nagiosxi/html/config.inc.php"? It doesn't seem that you have the mysql errors, so this is not your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
I changed the passwords in the database and updated /usr/local/nagios/etc/nagios/ndo2db.cfg and /usr/local/nagiosxi/html/config.inc.php. After a restart things worked fine, it was just these messages from the upgrader that caused me a little concern.
I went back into the upgrade script later that day and made it exit before it prints out the old version to see if it got hung up like it did before and received no database errors or warnings printed to screen so I'm hoping things are well.
I would have thought updating the default passwords would be good practice, should I not?
I would have thought updating the default passwords would be good practice, should I not?
Definitely. In fact, we are putting up a document together on changing default passwords in Nagios XI. As soon as it is tested, I will be posting it on the Nagios Library.
Be sure to check out our Knowledgebase for helpful articles and solutions!