Page 1 of 1

More than 10 Nagios XI snapshots

Posted: Wed Apr 20, 2016 6:05 pm
by cmunger
Hi all,

I have been trying to find the script file that controls how many snapshots Nagios will store. We would like to be able to raise the threshold from 10 to about 200. Is there a configuration file that controls how many shapshots are maintained?

Thanks in advance!

Re: More than 10 Nagios XI snapshots

Posted: Thu Apr 21, 2016 11:46 am
by rkennedy
Currently there isn't. You can archive them however, which will move them from /usr/local/nagiosxi/nom/checkpoints/nagiosxi/ to /usr/local/nagiosxi/nom/checkpoints/nagiosxi/archives/.

Once they are archived, they won't be going anywhere.

I've created a feature request for this though, to allow you to change that number from 10 as a global setting. It's on our internal system, with the ID 8345.

Re: More than 10 Nagios XI snapshots

Posted: Thu Apr 21, 2016 12:13 pm
by rkennedy
As a work around for now, you should be able to modify /usr/local/nagiosxi/scripts/nom_trim_nagioscore_checkpoints.sh and change the value here -

numtokeep=11

to numtokeep=201

Note - this will get replaced once upon update, so you'll need to change this again at that time.

Re: More than 10 Nagios XI snapshots

Posted: Mon Apr 25, 2016 6:04 pm
by cmunger
You are truly a scholar. Thank you. I will be making that modification first thing in the morning. That script was exactly what I was looking for, and we will apply it to the construction procedures for our build as a final step before deployments in the future.

Thank you rkennedy. Thank you, thank you, thank you.

Re: More than 10 Nagios XI snapshots

Posted: Tue Apr 26, 2016 9:54 am
by rkennedy
No problem! Great to hear you got it working. :-)

Going to mark this one as resolved, feel free to create a new thread if you have any questions in the future.