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
Backup_xi.sh errors
Re: Backup_xi.sh errors
ecarrasq,
I believe this one:
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.
I believe this one:
Code: Select all
tar: /usr/local/nagios/var/ndo.sock: socket ignoredHowever, 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.
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Backup_xi.sh errors
Ok, thank you!
The backups have been successful, and I've actually restored a couple of times from them.
Thanks,
Eddie
The backups have been successful, and I've actually restored a couple of times from them.
Thanks,
Eddie
Re: Backup_xi.sh errors
Good deal! Thanks for the update!
Re: Backup_xi.sh errors
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
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
System:
Nagios XI Version : 2012R2.2 | PHP Version: 5.3.3
Offloaded MySQL DB on another virtual machine
16 CPU with 2 cores each | 32 GB RAM | 1 TB HDD
CentOS-6.3 |Total = 4,000 hosts| 40,000 services.
Nagios XI Version : 2012R2.2 | PHP Version: 5.3.3
Offloaded MySQL DB on another virtual machine
16 CPU with 2 cores each | 32 GB RAM | 1 TB HDD
CentOS-6.3 |Total = 4,000 hosts| 40,000 services.