Local Backup Archives - backup not showing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Local Backup Archives - backup not showing

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Local Backup Archives - backup not showing

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Local Backup Archives - backup not showing

Post by dbcummings »

Sent you a PM
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Local Backup Archives - backup not showing

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Local Backup Archives - backup not showing

Post 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.
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Local Backup Archives - backup not showing

Post 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
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Local Backup Archives - backup not showing

Post by dbcummings »

One more bit of info. We are using a symlink from /store to /somedirectory/store
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Local Backup Archives - backup not showing

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Local Backup Archives - backup not showing

Post 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
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Local Backup Archives - backup not showing

Post 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.
Locked