Upgrade to 2012R2.8c -Error backing up MySQL database nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwireless
Posts: 66
Joined: Sat Feb 05, 2011 11:37 pm

Upgrade to 2012R2.8c -Error backing up MySQL database nagios

Post by cwireless »

Hi,
We have this configuration:
Red Hat Enterprise Linux Server release 5.3; 32 bit; VMWare Image of NagiosXI; No special configurations.Using Internet Explorer.

We updated to Nagios XI 2012R2.8c last week and since that day our daily backup task running from CRONTAB is sending an error message:

Code: Select all

Error backing up MySQL database 'nagios' - check the password in this script!
Backing up Core Config Manager (NagiosQL)...
Backing up Nagios Core...
Backing up Nagios XI...
Backing up MRTG...
Backing up MySQL databases...
Error backing up MySQL database 'nagios' - check the password in this script!
Backing up Core Config Manager (NagiosQL)...
Backing up Nagios Core...
Backing up Nagios XI...
Backing up MRTG...
Backing up MySQL databases...
Error backing up MySQL database 'nagios' - check the password in this script!

Code: Select all

[nagios@nagioscwp scripts]$ ls -l /usr/local/nagiosxi/html/config.inc.php
-rwxr-x--- 1 nagios nagios 5145 Jan 22 08:44 /usr/local/nagiosxi/html/config.inc.php
[nagios@nagioscwp scripts]$ ls -l /usr/local/nagiosxi/scripts/backup_xi.sh
-rwxr-xr-x 1 nagios nagios 4652 Jan 27 09:03 /usr/local/nagiosxi/scripts/backup_xi.sh
[nagios@nagioscwp scripts]$
we changed owner and permissions to backup_xi.sh
If you run the script by command line it finishes; but it does not complete when it is schedule from crontab.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade to 2012R2.8c -Error backing up MySQL database na

Post by scottwilkerson »

Sorry, there was a bug in the backup script, replacement can be found here

http://support.nagios.com/forum/viewtop ... 893#p86905
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwireless
Posts: 66
Joined: Sat Feb 05, 2011 11:37 pm

Re: Upgrade to 2012R2.8c -Error backing up MySQL database na

Post by cwireless »

Thanks, that worked!!!!!!
Locked