Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2015 21:29:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 200545] net-mgmt/pnp has conflicting permissions with nagios and breaks the nagios package.
Message-ID:  <bug-200545-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200545

            Bug ID: 200545
           Summary: net-mgmt/pnp has conflicting permissions with nagios
                    and breaks the nagios package.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: lme@FreeBSD.org
          Reporter: peter@FreeBSD.org
             Flags: maintainer-feedback?(lme@FreeBSD.org)
          Assignee: lme@FreeBSD.org

The packaged version of net-mgmt/pnp changes the owner/group of
/var/spool/nagios to root:wheel and breaks the nagios package.  This has been
causing problems on the freebsd cluster.

The other problem is nagios itself can't write the perfdata into the locations
it is supposed to be able to write to, because they too are root:wheel.

This is my best guess at how to fix it:

pb00:/p/poudriere/ports/cluster/net-mgmt/pnp # svn diff
Index: pkg-plist
===================================================================
--- pkg-plist    (revision 387912)
+++ pkg-plist    (working copy)
@@ -668,7 +668,7 @@
 @dir %%WWWDIR%%/templates
 @dir /var/log/kohana
 @dir /var/log/stats
-@dir %%NAGIOSDIR%%/pnp/perfspool
-@dir %%NAGIOSDIR%%/pnp/rrd
-@dir %%NAGIOSDIR%%/pnp
-@dir %%NAGIOSDIR%%
+@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,755) %%NAGIOSDIR%%/pnp/perfspool
+@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,755) %%NAGIOSDIR%%/pnp/rrd
+@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,755) %%NAGIOSDIR%%/pnp
+@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%

We are using this on the freebsd.org cluster.  I'd be grateful if it could be
cleaned up and integrated.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200545-13>