Backup script mysqlpass missing?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Backup script mysqlpass missing?

Post by WillemDH »

Has there something changed to the backup_xi.sh script? I had a procedure how to update it after an update, but it seems I cannot find the mysqlpass that I thought was there before.

When I follow http://assets.nagios.com/downloads/nagi ... ing_XI.pdf

I can't find the mysqlpass= anymore
Tired to add it and still get
Error backing up MySQL database 'nagios' - check the password.

I can see -password=$cfg__db_info_ndoutils__pwd in the script. What is this?
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Backup script mysqlpass missing?

Post by tmcdonald »

Scott addressed this in an earlier post:

http://support.nagios.com/forum/viewtop ... 893#p86905

We made some changes to the way configs are pulled in. I'm not familiar with the specifics, but it looks like your old configs should be parsed by this script and saved in config.dat.
Former Nagios employee
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Backup script mysqlpass missing?

Post by WillemDH »

Hello,

I've been testing the attached backup script in the other thread and I can confirm it seems to be working as expected. There is no longer a password required in the backup script, which is nice.
Added my rsync logic.

Thanks. Thread can be closed.

Willem
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Backup script mysqlpass missing?

Post by scottwilkerson »

That was the goal of the change, unfortunately Subversion wasn't playing nice that day, and a few important lines were removed.

The fix in that patch is in the trunk and will be what is used moving forward.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Backup script mysqlpass missing?

Post by WillemDH »

This thread can be closed.
Nagios XI 5.8.1
https://outsideit.net
Locked