Backups are not being generated due to tar creation errors


If you are running Nagios XI 5.6.11, most likely your backups won't be compressed. You can verify if this is the case by listing the contents of the backup directory:

ls -la /store/backups/nagiosxi

If you see any directories, that are NOT compressed to "*.tar.gz" format, you would need to remove them:

cd /store/backups/nagiosxi
rm -rf <directory1> <directory2> <directory3>

Then, you would need to open the "/usr/local/nagiosxi/scripts/backup_xi.sh" file in a text editor, and remove the "-e" from the shebang line. Other words, you need to change this:

#!/bin/bash -e

to this:

#!/bin/bash

Save, and exit. This should fix the problem in 5.6.11.

The bug will be fixed in Nagios XI 5.6.12.

 

 

 

 

 



Article ID: 867
Created On: Thu, Feb 27, 2020 at 11:45 AM
Last Updated On: Thu, Feb 27, 2020 at 11:49 AM
Authored by: lmiltchev

Online URL: https://support.nagios.com/kb/article/backups-are-not-being-generated-due-to-tar-creation-errors-867.html