Page 1 of 1

Nagios not processing log archives for availability reports

Posted: Thu May 30, 2019 7:05 am
by cramo
I have a Nagios Core 4.3.1 setup where old logfiles are compressed(xz archive) once a week. I know that I can disable this by changing the NAGIOS_COMPRESS_LOGFILES variable in /etc/sysconfig/nagios file, but in order to save the disk space, I would like to keep it enabled. However, when compression is enabled, the "Host Availability Report" or "Service Availability Report" feature no longer work for those time-periods which logs are compressed, i.e Nagios is not able to process compressed files. Is there a way to configure Nagios to process compressed log archives for availability reports?

Re: Nagios not processing log archives for availability repo

Posted: Thu May 30, 2019 7:08 am
by scottwilkerson
cramo wrote:I have a Nagios Core 4.3.1 setup where old logfiles are compressed(xz archive) once a week. I know that I can disable this by changing the NAGIOS_COMPRESS_LOGFILES variable in /etc/sysconfig/nagios file, but in order to save the disk space, I would like to keep it enabled. However, when compression is enabled, the "Host Availability Report" or "Service Availability Report" feature no longer work for those time-periods which logs are compressed, i.e Nagios is not able to process compressed files. Is there a way to configure Nagios to process compressed log archives for availability reports?
No, Nagios need to be able to read the uncompressed files to process the report.