More than 10 Nagios XI snapshots

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cmunger
Posts: 2
Joined: Tue Jan 26, 2016 2:50 pm

More than 10 Nagios XI snapshots

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: More than 10 Nagios XI snapshots

Post 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.
Former Nagios Employee
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: More than 10 Nagios XI snapshots

Post 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.
Former Nagios Employee
cmunger
Posts: 2
Joined: Tue Jan 26, 2016 2:50 pm

Re: More than 10 Nagios XI snapshots

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: More than 10 Nagios XI snapshots

Post 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.
Former Nagios Employee
Locked