Wrong log and archive permissions in Nagios

Per olof Ljungmark peo at nethead.se
Thu Sep 6 11:43:48 UTC 2018


Hi,

On 9/6/18 12:42 PM, Andrea Venturoli wrote:
> Hello.
> 
> I run several instances of Nagios and they all share a problem: reports,
> alert histories, notifications, etc... cannot be viewed due to
> permission problems.
> In fact all the files are owned by nagios and access is denied to user
> www. Of course I can chown/chmod them, but it's not a permanent solution
> as rotation or new file creation will bring the problem back.
> 
> I see this was discussed here:
> https://github.com/NagiosEnterprises/nagioscore/issues/303
> 
> and I understand correctly this is supposed to be fixed upstream.
> Is it a problem specific to our FreeBSD port?

This is interesting, which version are you on? I am on 3.5.1_11 and do
not have this problem because nagios.log in /var/spool/nagios/ is owned
by nagios:nagios *and* readable by (o)thers, ie. 644.

//per


More information about the freebsd-ports mailing list