npolovenko wrote:@highness, I'm looking at your config.inc.php file and some usernames and passwords for the database are incorrect. It looks like you had an external-offloaded database at some point?
We did, but we had to repatriate that database some time ago.
All requested changes made, but we're still seeing the same error in the httpd error_log file:
[Thu May 24 13:58:57 2018] [error] [client 10.XX.XX.XX] PHP Warning: mysqli_real_connect(): (28000/1045): Access denied for user 'nagios'@'localhost' (using password: YES) in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
@highness, Looking at the passwords and usernames in your configs it seems like you were still using an offloaded database. Unless you manually changed users and passwords for the localhost db?
npolovenko wrote:@highness, Looking at the passwords and usernames in your configs it seems like you were still using an offloaded database. Unless you manually changed users and passwords for the localhost db?
upload the modified /usr/local/nagiosxi/html/config.inc.php
and
/var/www/html/nagiosql/config/settings.php
There must be some kind of disconnect (or maybe I just haven't had enough caffeine yet...) While we did have an external database (well over a year ago - which we repatriated back to our original Nagios box) - the external database was shut down once the database was moved back to the original Nagios box. The backup we are restoring from is from our working Nagios XI instance, so I'm completely confused as to why this would be an issue.
In regards to the /usr/local/nagios/etc/ndo2db.cfg file the lines you asked me to find and replace - those fields are already set to what you've asked me to change them to.
Ok - that worked - I can now log into the new box - the second biggest issue is that the secondary box appears to be displaying data from the original (primary) box.
I checked all the configurations that I could find and it appears that the secondary box are all referencing localhost - not the primary box.... yet all the alerts on the primary box are showing up on the secondary box.