Page 1 of 1

Backup_xi.sh errors

Posted: Thu Nov 17, 2011 12:04 pm
by ecarrasq
System Info

Linux Distribution and version?

*Linux version 2.6.18-274.3.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Tue Sep 6 20:14:03 EDT 2011
CentOS release 5.7 (Final)

32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

No.

ISSUE:

I run the Nagios Xi backup script (/usr/local/nagiosxi/scripts/backup_xi.sh), but I sometimes get "error" messages such as the following:

Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/spool/perfdata/host-perfdata.1321546931: Cannot stat: No such file or directory
tar: /usr/local/nagios/var/spool/perfdata/service-perfdata.1321546946: Cannot stat: No such file or directory
tar: /usr/local/nagios/var/spool/perfdata/host-perfdata.1321546946: Cannot stat: No such file or directory
tar: /usr/local/nagios/var/spool/perfdata/service-perfdata.1321546931: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Backing up Nagios XI...

The backup runs ok, but wanted to know if the above "Errors" are normal.

Thanks,
Eddie

Re: Backup_xi.sh errors

Posted: Thu Nov 17, 2011 12:10 pm
by nscott
ecarrasq,

I believe this one:

Code: Select all

tar: /usr/local/nagios/var/ndo.sock: socket ignored
is fine because tar aren't supposed to compress sockets because it wouldn't make sense to back up a socket. And the rest are due to the perfdata directory getting reaped, creating a race condition with the backup script. These files are temp files so them not getting backed up should be ok.

However, if the output of this plugin starts saying that *.cfg or *.xml (using Linux lingo) didn't get backed up, then something screwy is going on.

Re: Backup_xi.sh errors

Posted: Thu Nov 17, 2011 12:43 pm
by ecarrasq
Ok, thank you!
The backups have been successful, and I've actually restored a couple of times from them.
Thanks,
Eddie

Re: Backup_xi.sh errors

Posted: Thu Nov 17, 2011 1:27 pm
by mguthrie
Good deal! Thanks for the update!

Re: Backup_xi.sh errors

Posted: Tue Aug 27, 2013 6:44 am
by anoop
Hi Team,

We are also getting the same error but we are already offloaded db. now the error is looking like.....

[root@NagiosxiApp 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/ndo.sock: socket ignored
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: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
Error backing up MySQL database 'nagios' - check the password in this script!


please suggest us, is this backup is not containing the file of offload mysql......database