[MacPorts] #43232: cacti port improvements
#43232: cacti port improvements -------------------------+-------------------------------- Reporter: jul_bsd@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: cacti -------------------------+-------------------------------- * include some mainstream patch vs known bugs * set default path/settings to macports * add user/group cactiuser * add plist file instead of cron (#16969 ) * conf as examples and post-activate * example web config for nginx * review notes w indication to setup snmpd * variants but need review for plugin: superlinks (easy test), weathermap, advancedping ideally, I would want a full mac template include by default for localhost. -- Ticket URL: <https://trac.macports.org/ticket/43232> MacPorts <http://www.macports.org/> Ports system for OS X
#43232: cacti port improvements --------------------------+---------------------- Reporter: jul_bsd@… | Owner: markd@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cacti | --------------------------+---------------------- Changes (by macsforever2000@…): * cc: markd@… (removed) * owner: macports-tickets@… => markd@… -- Ticket URL: <https://trac.macports.org/ticket/43232#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43232: cacti port improvements --------------------------+---------------------- Reporter: jul_bsd@… | Owner: markd@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cacti | --------------------------+---------------------- Comment (by jul_bsd@…): * review * use OtherJobEnabled in plist for dependency to mysql and net-snmp (the latter only if monitoring includes localhost but I suppose that's the normal case) * port lint * include a newsyslog template file for rotating log * remove some implicit PREFIX -- Ticket URL: <https://trac.macports.org/ticket/43232#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43232: cacti port improvements --------------------------+---------------------- Reporter: jul_bsd@… | Owner: markd@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cacti | --------------------------+---------------------- Comment (by jul_bsd@…): * as discussed on #43418, I added mysql variants. it's not enforced at all as cacti is only a web interface and will rely on which socket is declared in php.ini or server address. * also enable superlinks variant but need review to do it in the best manner. once it's working, can review more complicated plugins & template * the OtherJobEnabled in my plist is not working on my setup, I had to disable it. Can someone else give it a try? -- Ticket URL: <https://trac.macports.org/ticket/43232#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43232: cacti port improvements --------------------------+---------------------- Reporter: jul_bsd@… | Owner: markd@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cacti | --------------------------+---------------------- Comment (by jul_bsd@…): I currently have a strange behavior with the poller task. It is supposed to execute as cacti user (515) {{{ <dict> <key>Label</key> <string>com.macports.cacti</string> <key>Username</key> <string>cactiuser</string> <key>ProgramArguments</key> <array> <string>/opt/local/bin/php55</string> <string>-q</string> <string>/opt/local/share/cacti/poller.php</string> }}} but in my system.log, I got Permission denied error. files are owned by cactiuser which is normal {{{ Apr 24 10:31:19 HOST com.apple.launchd.peruser.502[192] (com.macports.cacti[7162]): open("/opt/local/var/log/cacti/poller.log", ...): 13: Permission denied Apr 24 10:31:19 HOST com.apple.launchd.peruser.502[192] (com.macports.cacti[7162]): open("/opt/local/var/log/cacti/poller_err.log", ...): 13: Permission denied }}} so why it is trying to execute as user 502 (gui user) ? there is only the sudo call to launchctl which could come from but even if I unload/load as root, it changes nothing I tried moving from LaunchAgents (which was working before) to LaunchDaemons dir but same too -- Ticket URL: <https://trac.macports.org/ticket/43232#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43232: cacti port improvements --------------------------+---------------------- Reporter: jul_bsd@… | Owner: markd@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cacti | --------------------------+---------------------- Comment (by jul_bsd@…): * move launchd script to LaunchDaemons * global.php is the a possible config file (http://www.network- weathermap.com/manual/0.97b/pages/install-cacti.html Getting started) * plugins: start to make variants working: included superlinks by default -- Ticket URL: <https://trac.macports.org/ticket/43232#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43232: cacti port improvements --------------------------+---------------------- Reporter: jul_bsd@… | Owner: markd@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cacti | --------------------------+---------------------- Comment (by jul_bsd@…): * I think the permission problem is solved and a consequence of newsyslog rotating and creating new files as root * mode line * sha256 -- Ticket URL: <https://trac.macports.org/ticket/43232#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#43232: cacti port improvements --------------------------+-------------------------------- Reporter: jul_bsd@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cacti | --------------------------+-------------------------------- Changes (by mf2k@…): * owner: markd@… => macports-tickets@… Comment: markd has retired. See #44782. -- Ticket URL: <https://trac.macports.org/ticket/43232#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#43232: cacti port improvements --------------------------+-------------------------------- Reporter: jul_bsd@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: cacti | --------------------------+-------------------------------- Changes (by mf2k@…): * owner: markd@… => macports-tickets@… Comment: markd has retired. See #44782. -- Ticket URL: <https://trac.macports.org/ticket/43232#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts