problem in nagios backup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

problem in nagios backup

Post by hanya.radwan »

hi,

after upgrade nagios to 2014R1.4 andwhen i try to backup nagios when I run backup.sh script,the backup fail, but where can I change the password:
[root@nms ~]# /usr/local/nagiosxi/scripts/backup_xi.sh
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 MySQL databases...
mysqldump: Got error: 144: Table './nagios/nagios_statehistory' is marked as crashed and last (automatic?) repair failed when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!
You have new mail in /var/spool/mail/root
[root@nms ~]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: problem in nagios backup

Post by slansing »

I believe that is just a generic error that is thrown out, lets first try to fix your crashed tables by running:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Then try to run the backup again.
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: problem in nagios backup

Post by hanya.radwan »

the packup succeed.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem in nagios backup

Post by tmcdonald »

Can we close the topic now?
Former Nagios employee
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: problem in nagios backup

Post by hanya.radwan »

I don't have privileges to close
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem in nagios backup

Post by tmcdonald »

I know, we handle the closing - I just wanted to make sure we weren't closing it before you were ready to do so.
Former Nagios employee
Locked