Page 1 of 1

Is it normal to have very frequent snapshots?

Posted: Fri Jun 22, 2018 11:24 am
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?

Re: Is it normal to have very frequent snapshots?

Posted: Fri Jun 22, 2018 12:44 pm
by npolovenko
Hello, @burkm. I think Nagios creates a snapshot every time you change the configs and click on the Apply Configuration.

Re: Is it normal to have very frequent snapshots?

Posted: Fri Jun 22, 2018 12:49 pm
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

Re: Is it normal to have very frequent snapshots?

Posted: Fri Jun 22, 2018 1:19 pm
by scottwilkerson
We were able to replicate this issue in-house and confirm the above fixed the issue.

Re: Is it normal to have very frequent snapshots?

Posted: Fri Jun 22, 2018 3:35 pm
by burkm
Hello,
I put the file in place and should know tomorrow if it fixed the problem.
Thank you for your help!

Re: Is it normal to have very frequent snapshots?

Posted: Fri Jun 22, 2018 4:11 pm
by scottwilkerson
Excellent. Thanks!

Re: Is it normal to have very frequent snapshots?

Posted: Mon Jun 25, 2018 10:43 am
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!

Re: Is it normal to have very frequent snapshots?

Posted: Mon Jun 25, 2018 11:11 am
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