XI Upgrade failure using RDS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
daveinvb
Posts: 67
Joined: Tue Jun 02, 2015 9:06 am

XI Upgrade failure using RDS

Post by daveinvb »

Does the UI upgrade use a default password for MySQL? I'm using AWS RDS and I am receiving the error "Error backing up MySQL database 'nagiosql' - check the password in this script!". It's really poor practice to use default passwords in RDS, so is there somewhere I can set that in Nagios so the script will run?
daveinvb
Posts: 67
Joined: Tue Jun 02, 2015 9:06 am

Re: XI Upgrade failure using RDS

Post by daveinvb »

Code: Select all

---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up MySQL databases...
mysqldump: Got error: 2005: "Unknown MySQL server host 'nagiosql.*********.us-east-1.rds.amazonaws.com:3306' (0)" when trying to connect
Error backing up MySQL database 'nagiosql' - check the password in this script!
Will I also run into the same error running the manual process listed here? https://assets.nagios.com/downloads/nag ... ctions.pdf
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: XI Upgrade failure using RDS

Post by ssax »

You shouldn't run into an issue if you run the manual upgrade but that's because the manual upgrade doesn't take a backup first.

Run a manual backup and see if that allows it to complete and let us know so we can dig further.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
daveinvb
Posts: 67
Joined: Tue Jun 02, 2015 9:06 am

Re: XI Upgrade failure using RDS

Post by daveinvb »

The manual upgrade failed as well.

Code: Select all

kernel.shmall = 268435456
kernel.msgmni = 256000
Removing depricated failure_prediction_enabled from NagiosQL
ERROR 2005 (HY000): Unknown MySQL server host 'nagiosql.**********.us-east-1.rds.amazonaws.com:3306' (0)
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: XI Upgrade failure using RDS

Post by Box293 »

Can you go to Admin > System Config > Manage System Config

What is in your "Program URL" and "External URL" fields?

Does you Program URL resolve to an internal IP address?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
daveinvb
Posts: 67
Joined: Tue Jun 02, 2015 9:06 am

Re: XI Upgrade failure using RDS

Post by daveinvb »

The Program URL is our internal AWS address and External URL is blank.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: XI Upgrade failure using RDS

Post by rkennedy »

From your XI machine, can you run the following and post the output -

Code: Select all

nslookup nagiosql.*********.us-east-1.rds.amazonaws.com
Replace the ******* accordingly to match the exact hostname that sql is looking for.

Also, please post the output of -

Code: Select all

cat /etc/hosts
Former Nagios Employee
Locked