interesting ... so the default is to only hold notification data for 90 days?
How much of a hit would it be for me to set that option to 2 years - and how would I go about getting all of the previous data into the db ?
/usr/local/nagios/var/archives/ *has all of the data.
I checked the db and it wasn't in there though.
Code: Select all
mysql> select start_time, output from nagios_notifications where start_time like '%2017%';
Empty set, 1 warning (0.08 sec)
As per the config option you pointed out it only goes back 90 days.
It's obviously not something that comes up much as it must have always been like this and we've only just noticed it.
The example is wanting to pull a list of notifications on a specific day in 12/17 to verify what notifications got sent to who.
I can grep through files find what I want but my boss's boss is probably going to be less than happy with having to do that.
... which is what led to this thread.
