Snapshots & Maintenance jobs don't appear to be working

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
NSchoenbaechler
Posts: 15
Joined: Fri Feb 02, 2018 10:10 am

Snapshots & Maintenance jobs don't appear to be working

Post by NSchoenbaechler »

We had some issues with running out of disk space in the past so I configured maintenance settings to close indexes older than 30 days and delete indexes older than 35 days. I may be misunderstanding how this works, but indexes don't seem to be closing or deleting. Today is May 15 and I still have all indexes open dating back to April 05 (first day of log collection since we experienced issues and started over). No indexes have been closed or deleted.

I also configured a snapshot repository. Both instances have access to the repository via NFS and have the share mounted to the exact same path. The nagios user has the same UIDs and GIDs across all instances and our NFS server. Snapshots are configured to be captured once daily but none have shown up. When I run the job manually from command subsystem menu, nothing happens. I'm been tailing /usr/local/nagioslogserver/var/jobs.log when running the job and only see lines like this:

tail: /usr/local/nagioslogserver/var/jobs.log: file truncated
Running command do_maintenance with args ' ' for job id: snapshots_maintenance

Any suggestions appreciated it. Thank you.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snapshots & Maintenance jobs don't appear to be working

Post by scottwilkerson »

Can you send a screenshot of the command subsystem menu ?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
NSchoenbaechler
Posts: 15
Joined: Fri Feb 02, 2018 10:10 am

Re: Snapshots & Maintenance jobs don't appear to be working

Post by NSchoenbaechler »

Attached. The last and next run times are way off given the frequency setting, and when I run manually, nothing seems to happen.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snapshots & Maintenance jobs don't appear to be working

Post by scottwilkerson »

Ok, it appears these jobs may all be stuck from something happening on or about 2/19 as they all think they are currently in a running state and have not updated since February.

Lets click the "Reset All Jobs" button at the top of the table.

then you are going to want to give it some time to finish. Some may take quite some time as they haven't ran for months.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
NSchoenbaechler
Posts: 15
Joined: Fri Feb 02, 2018 10:10 am

Re: Snapshots & Maintenance jobs don't appear to be working

Post by NSchoenbaechler »

That took care of it. Thanks for the help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snapshots & Maintenance jobs don't appear to be working

Post by scottwilkerson »

NSchoenbaechler wrote:That took care of it. Thanks for the help.
Glad to hear it is resolved.

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked