Is it normal to have very frequent snapshots?

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
burkm
Posts: 31
Joined: Thu Jan 21, 2016 5:10 pm

Is it normal to have very frequent snapshots?

Post by burkm »

Hello,

I just turned on snapshots a couple days ago. I imagined that I might get one a day, but I'm seeing a large number of frequent snapshots. For example, there were a bunch from 12:15am to 2:37am today. Some are only a minute apart:

06-22-2018 02:37:00 SUCCESS 729
06-22-2018 02:36:09 SUCCESS 729
06-22-2018 02:32:18 SUCCESS 729
06-22-2018 02:29:28 SUCCESS 729
06-22-2018 02:28:40 SUCCESS 729
06-22-2018 02:18:14 SUCCESS 729
06-22-2018 02:12:43 SUCCESS 729
06-22-2018 01:59:24 SUCCESS 729
06-22-2018 01:45:18 SUCCESS 729
06-22-2018 01:25:13 SUCCESS 729
06-22-2018 01:18:29 SUCCESS 729
06-22-2018 01:12:01 SUCCESS 729
06-22-2018 00:49:58 SUCCESS 729
06-22-2018 00:15:28 SUCCESS 729

Sar data shows CPU usage around 63% (user) during this time.
Is this normal?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Is it normal to have very frequent snapshots?

Post by npolovenko »

Hello, @burkm. I think Nagios creates a snapshot every time you change the configs and click on the Apply Configuration.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Is it normal to have very frequent snapshots?

Post by scottwilkerson »

@npolovenko I'm pressy sure the OP means the Snapshots from Snapshots & Maintenance under Admin

I believe we found a bug in 2.0.3 if you are running the latest.

Would you be willing to test a fix?

Unzip the attached and upload it to replace the following file

Code: Select all

/var/www/html/nagioslogserver/application/models/Cmdsubsys.php
We believe this should stop the duplicate snapshots
Cmdsubsys.zip
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Is it normal to have very frequent snapshots?

Post by scottwilkerson »

We were able to replicate this issue in-house and confirm the above fixed the issue.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
burkm
Posts: 31
Joined: Thu Jan 21, 2016 5:10 pm

Re: Is it normal to have very frequent snapshots?

Post by burkm »

Hello,
I put the file in place and should know tomorrow if it fixed the problem.
Thank you for your help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Is it normal to have very frequent snapshots?

Post by scottwilkerson »

Excellent. Thanks!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
burkm
Posts: 31
Joined: Thu Jan 21, 2016 5:10 pm

Re: Is it normal to have very frequent snapshots?

Post by burkm »

I just confirmed that the patch is working. I'm getting one backup per day now.

You can close this one for me now.

Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Is it normal to have very frequent snapshots?

Post by scottwilkerson »

burkm wrote:I just confirmed that the patch is working. I'm getting one backup per day now.

You can close this one for me now.

Thanks!
Thanks for confirming! Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked