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!
More than 10 Nagios XI snapshots
Re: More than 10 Nagios XI snapshots
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.
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.
Former Nagios Employee
Re: More than 10 Nagios XI snapshots
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.
numtokeep=11
to numtokeep=201
Note - this will get replaced once upon update, so you'll need to change this again at that time.
Former Nagios Employee
Re: More than 10 Nagios XI snapshots
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.
Thank you rkennedy. Thank you, thank you, thank you.
Re: More than 10 Nagios XI snapshots
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.
Going to mark this one as resolved, feel free to create a new thread if you have any questions in the future.
Former Nagios Employee