I am receiving the email notification stating that "SSH backups are getting failed". Can someone assist on how to fix this issue?
Upon checking the log, I could see the below message.The scheduled SSH backup at 2024-07-07 01:30:03 failed.
View your full scheduled backup logs at /usr/local/nagiosxi/var/components/scheduledbackups.log to find out more details about the error. Your backup may have timed out, you can set a backup_timeout variable in config.inc.php to increase it.
Code: Select all
\nStarting new backup....\n
tr: write error: Broken pipe
tr: write error
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/share/perfdata/qr-con-3148-emea-fr-mop: file changed as we read it
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
tar: /usr/local/nagiosxi/tmp/phpmailer.log: file changed as we read it
tar: Removing leading `/' from hard link targets
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up the SNMP directories
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up nagios user home dir...
tar: Removing leading `/' from member names
tar: /home/nagios/output.txt: file changed as we read it
Backing up MySQL databases...
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
gzip: stdout: No space left on device
tar: nagiosxi.1718838004.tar.gz: Wrote only 6144 of 10240 bytes
tar: Child returned status 1
tar: Error is not recoverable: exiting now
===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/nagiosxi.1718838004.tar.gz
Code: Select all
Backing up MySQL databases...
+ mkdir -p /store/backups/nagiosxi/xi-backup-1720418421-5b2unzg1KMjy82d3u96B/mysql
+ [[ localhost == *\:* ]]
+ ndoutils_dbport=3306
+ ndoutils_dbserver=localhost
+ mysqldump --column-statistics=0 -h localhost --port=3306 -u ndoutils --password=n@gweb --add-drop-database -B nagios
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: Got error: 145: Table './nagios/nagios_hoststatus' is marked as crashed and should be repaired when using LOCK TABLES
+ res=2
+ '[' 2 '!=' 0 ']'
+ echo 'Error backing up MySQL database '\''nagios'\'' - check the password in this script!'
Error backing up MySQL database 'nagios' - check the password in this script!
+ rm -r /store/backups/nagiosxi/xi-backup-1720418421-5b2unzg1KMjy82d3u96B
+ exit 2