Page 1 of 1

Backups not running

Posted: Mon Mar 07, 2016 10:58 am
by ssouthern
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.

Re: Backups not running

Posted: Mon Mar 07, 2016 11:29 am
by jolson
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:
2016-03-07 10_24_41-Command Subsystem • Nagios Log Server - Firefox Developer Edition.png
Though I do think the following error is concerning:
cp: cannot stat ‘/usr/local/nagioslogserver/snapshots/*.tar.gz’: No such file or directory
Hopefully it's simply improper permissions on the above. Give this a try:

Code: Select all

ls -ld /usr/local/nagioslogserver/snapshots/
The output should look similar to this:

Code: Select all

drwxrwxr-x. 2 nagios nagios 4096 Jan  7 14:02 /usr/local/nagioslogserver/snapshots/

Re: Backups not running

Posted: Mon Mar 07, 2016 1:15 pm
by ssouthern
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.

Re: Backups not running

Posted: Mon Mar 07, 2016 1:40 pm
by jolson
Excellent, I'm glad to hear it. Would it be alright if I closed this thread? Thank you!