Wrong log and archive permissions in Nagios
Lee Brown
leeb at ratnaling.org
Thu Sep 6 16:41:09 UTC 2018
On Thu, Sep 6, 2018 at 4:43 AM, Per olof Ljungmark <peo at nethead.se> wrote:
> 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.
>
I run nagios4-4.4.4.1,1 it works fine, as you describe. Self built with
poudriere.
More information about the freebsd-ports
mailing list