Page 1 of 2

Local Backup Archives - backup not showing

Posted: Mon Sep 16, 2019 9:18 am
by dbcummings
I created a local backup archive through the Nagios XI interface. It was created in /store/backups/nagiosxi and I can see it from the server terminal. However, it is not show in the interface. It just says there are no system backups available. The verified that the backup is owned by nagios:nagios.

Re: Local Backup Archives - backup not showing

Posted: Mon Sep 16, 2019 11:23 am
by benjaminsmith
Hello @dbcummings,

The program is simply listing the files in that directory. Have you tried clearing the browser cache or logging in from another browser?

What is the output of the following commands?

Code: Select all

ls -ld /store/backups/nagiosxi
ls -lR /store/backups/nagiosxi
Run the following tail command and then perform a local backup and post the output. Thanks.

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log

Re: Local Backup Archives - backup not showing

Posted: Mon Sep 16, 2019 1:52 pm
by dbcummings
Sent you a PM

Re: Local Backup Archives - backup not showing

Posted: Mon Sep 16, 2019 2:46 pm
by mbellerue
A couple of question.

What version of XI are you on?
Can you double check your backup settings? Both in the web interface, check the Schedule Backups page, in the Local tab, copy/paste what is shows in the Location into the forums here.
Then at the terminal, copy and paste the output of the following command here in the forums (assuming it does not show any sensitive data)

Code: Select all

ls -lh /store/backups/
ls -lh /store/backups/nagiosxi/
Edit:
My apologies, it looks like you've already sent in those ls commands. I will check that out.

Re: Local Backup Archives - backup not showing

Posted: Tue Sep 17, 2019 8:46 am
by dbcummings
I noticed a problem with the /store/backups/nagiosxi directory not being own by the nagios user. So, I did a chown -R nagios:nagios to that directory. However, the files are still not appearing in the interface.

Re: Local Backup Archives - backup not showing

Posted: Tue Sep 17, 2019 8:53 am
by dbcummings
I also tried this on another production server where we didn't have an initial permissions issue. And, we are having the same problem. This is our current version.

5.6.6

Re: Local Backup Archives - backup not showing

Posted: Tue Sep 17, 2019 8:57 am
by dbcummings
One more bit of info. We are using a symlink from /store to /somedirectory/store

Re: Local Backup Archives - backup not showing

Posted: Tue Sep 17, 2019 10:56 am
by mbellerue
dbcummings wrote:One more bit of info. We are using a symlink from /store to /somedirectory/store
I have run into software that does not like symlinks. I just tried this out on my system, and I'm able to make backups, and see them in the Local Backup Archives.

What's the purpose for the symlink? Is it just another disk that's attached to the system, or a network file system? My initial test worked, but I'd like to test this in a way that lines up better with your environment.

Re: Local Backup Archives - backup not showing

Posted: Wed Sep 18, 2019 6:05 am
by dbcummings
We have to use SAN for any large disk storage. So, that is the main purpose. The rest of Nagios is running using symlinks with no problems thus far.

I am also getting these messages in /usr/local/nagiosxi/var/components/scheduledbackups.log when trying to run overnight backups.

09-17-2019 00:11:55 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist

Re: Local Backup Archives - backup not showing

Posted: Wed Sep 18, 2019 6:39 am
by dbcummings
I am wondering if some of this has to do with dirname in backup_xi.sh. I am not sure how dirname will react to symlinks.