Page 2 of 2

Re: Snapshot Storage Setup

Posted: Fri Sep 20, 2019 9:41 am
by hcltech
I changed this on both the servers and they are still not doing the snapshots. Do i need to restart them or restart any services in order for this to work?

Re: Snapshot Storage Setup

Posted: Fri Sep 20, 2019 3:57 pm
by cdienger
The change should be picked up the next time it attempts to run the snapshots_maintenance job under Admin > System > Command Subsystem. That said, 2.1 is released now and I would recommend going to that version since it fixes a few things with Ubuntu installs.

https://assets.nagios.com/downloads/nag ... Server.pdf
https://www.nagios.com/downloads/nagios ... hange-log/

Re: Snapshot Storage Setup

Posted: Tue Sep 24, 2019 10:13 pm
by hcltech
Yes I did that on both servers and since then it stopped removing past 15 days and still does not backup to the offsite storage.

Re: Snapshot Storage Setup

Posted: Wed Sep 25, 2019 9:34 am
by cdienger
Run the following on the command line:

Code: Select all

tail -f /usr/local/nagioslogserver/var/jobs.log
Then force teh snapshots_maintenance to run under Admin > System > Command Subsystem. It may take a minute or two, but the command line should then show some details about running the jobs. Please provide the output.

Re: Snapshot Storage Setup

Posted: Tue Oct 01, 2019 9:17 am
by hcltech
setup@cl-p-nagioslog01:~$ tail -f /usr/local/nagioslogserver/var/jobs.log
Running command do_maintenance with args ' ' for job id: snapshots_maintenance
tail: /usr/local/nagioslogserver/var/jobs.log: file truncated
Processed 0 node jobs.
Processed 0 global jobs.
tail: /usr/local/nagioslogserver/var/jobs.log: file truncated
Processed 0 node jobs.
Processed 0 global jobs.
tail: /usr/local/nagioslogserver/var/jobs.log: file truncated

Re: Snapshot Storage Setup

Posted: Tue Oct 01, 2019 4:35 pm
by mbellerue
That log file seems pretty quiet. In that same page, Admin -> Command Subsystem, there is a Reset All Jobs button. Hit that button, click OK, run the tail -f /usr/local/nagioslogserver/var/jobs.log command, and then run the snapshots_maintenance job again.

Re: Snapshot Storage Setup

Posted: Wed Oct 02, 2019 2:23 pm
by hcltech
I think the upgrade fixed this issue. I am now taking snapshots and its rolling off indexes like it should as well.

Re: Snapshot Storage Setup

Posted: Wed Oct 02, 2019 2:55 pm
by mbellerue
Excellent, glad to hear it's working. I'll go ahead and lock the thread.