jobs.log shows this when we attempt to run backups:
Running command do_backups with args ' ' for job id: backups
SUCCESS
Running command create_backup with args ' ' for job id: AVNRx2vvGIModds_jQW8
cp: cannot stat ‘/usr/local/nagioslogserver/snapshots/*.tar.gz’: No such file or directory
SUCCESS
I've confirmed that the nagios user has the ability to create/modify files in the repository location.
The backups are not being created. This is a new install recently and the first time setting up the backups.
Backups not running
Re: Backups not running
The backup that you're running is a configuration backup, not a log backup. Please try running 'backup and maintenance' command instead and let me know what show up in jobs.log:
Though I do think the following error is concerning:
The output should look similar to this:
Hopefully it's simply improper permissions on the above. Give this a try:cp: cannot stat ‘/usr/local/nagioslogserver/snapshots/*.tar.gz’: No such file or directory
Code: Select all
ls -ld /usr/local/nagioslogserver/snapshots/Code: Select all
drwxrwxr-x. 2 nagios nagios 4096 Jan 7 14:02 /usr/local/nagioslogserver/snapshots/You do not have the required permissions to view the files attached to this post.
Re: Backups not running
Thanks Jesse.
First I found that /store/backups didn't exist, so I added that and gave it to the nagios user.
I then reset the permissions on the directory for the archive/snapshots, and it all seems good. For some reason the backup_maintenance command wasn't running, so I ran it manually from the interface (Administration -> Command Subsystem -> Edit next run time to 'run now'), and it's now scheduled to run.
First I found that /store/backups didn't exist, so I added that and gave it to the nagios user.
I then reset the permissions on the directory for the archive/snapshots, and it all seems good. For some reason the backup_maintenance command wasn't running, so I ran it manually from the interface (Administration -> Command Subsystem -> Edit next run time to 'run now'), and it's now scheduled to run.
Re: Backups not running
Excellent, I'm glad to hear it. Would it be alright if I closed this thread? Thank you!