Looks like our backups are failing. The back folder is there and contains files, but looks like it isn't zipping them up. So I suspect that the backups are failing somewhere. Where can I find what went wrong with the backup to remediate?
For some background information, are your backups going locally, or to a remote machine? Is the above the output from the local or remote? Nagios will need enough room to zip up any backup archives, which could be causing an issue.
From the Nagios XI web UI, go to Admin->Scheduled Backups->Local, and schedule a backup a few minutes in the future. Examine the "cmdsubsys.log" for clues/errors while it is running.
Hit "Ctrl+c" to exit the tail command when you are done, and post the output on the forum.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
..................................
PROCESSED 0 COMMANDS
COMMAND: CMD=1117, DATA=
CMDLINE=/usr/local/nagiosxi/scripts/backup_xi.sh
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
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
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
............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
tar: /usr/local/nagios/share/perfdata/edmbchwiski3: file changed as we read it
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
..................................................Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
PROCESSED 0 COMMANDS
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up MySQL databases...
mysqldump: Got error: 130: Incorrect file format 'nagios_logentries' when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!
OUTPUT=Error backing up MySQL database 'nagios' - check the password in this script!
RETURNCODE=2
PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
..
PROCESSED 0 COMMANDS