Backups not running

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ssouthern
Posts: 24
Joined: Thu Oct 25, 2012 7:34 am

Backups not running

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Backups not running

Post 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/
You do not have the required permissions to view the files attached to this post.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ssouthern
Posts: 24
Joined: Thu Oct 25, 2012 7:34 am

Re: Backups not running

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Backups not running

Post by jolson »

Excellent, I'm glad to hear it. Would it be alright if I closed this thread? Thank you!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked