[Pkg-nagios-devel] Bug#869679: Bug#869679: icinga: /var/log/icinga/* not readable by www-data, preventing history viewing from web frontend
sebastic at xs4all.nl
Wed Jul 26 13:52:47 UTC 2017
Control: tags -1 moreinfo
On 2017-07-25 17:09, root wrote:
> in the version of icinga in stretch, the icinca log files are created
> with permissions 600,
> user and group nagios:nagios or nagios:adm. This prevents the web
> frontend (which is run as
> www-data in case of apache2) from accessing it and displaying history
> for a service:
> "Log file "/var/log/icinga/icinga.log" invalid! No timestamp found
> within first 16 bytes!
> I have found not way of fixing this via additional group memberships.
> This was not the case
> in nagios as distributed with the previous release.
I have several stretch systems (upgraded from jessie and earlier)
running icinga, and they don't have this issue.
On all those systems /var/log/icinga is owned by nagios:nagios with mode
In a clean stretch chroot the log file is indeed created with mod 600,
but you should be able to change this with:
chmod 644 /var/log/icinga.log
This should be sufficient to let the webserver access the file.
The logrotation performed by Icinga reuses the ownership and permissions
of the existing logfile, so you should only need to do this once.
Does this resolve your issue?
More information about the Pkg-nagios-devel