"Expiration date" of Nagios Xi log messages?
Posted: Wed Sep 22, 2021 2:26 am
In our Nagios Xi set up we want to "....keep received SNMP status (poll results) for X days".... I am a little confused with regards to what is being logged where (we do not currently have Nagios Log Server) but I assume that this log is where the actual poll results are stored:
/usr/local/nagios/var/nagios.log (we massage the entries in this file with a simple script and thus make them look sufficiently nice)
But here is where the confusion sets in:
i read somewhere that a new log is created daily... which does not seem to be the case, so what i read must be referring to another log file (or files)?
If not, is this file just appended to until... when?
Is there a way to set the "retention time" for entries in this file ? In the GUI, there is the Performance settings/Database tab which lets you set data retention times for various databases, but I do not understand which of the settings there that apply to this file?
Or do we have to make tool that monitors the file and deletes entries older than X days?
/usr/local/nagios/var/nagios.log (we massage the entries in this file with a simple script and thus make them look sufficiently nice)
But here is where the confusion sets in:
i read somewhere that a new log is created daily... which does not seem to be the case, so what i read must be referring to another log file (or files)?
If not, is this file just appended to until... when?
Is there a way to set the "retention time" for entries in this file ? In the GUI, there is the Performance settings/Database tab which lets you set data retention times for various databases, but I do not understand which of the settings there that apply to this file?
Or do we have to make tool that monitors the file and deletes entries older than X days?