Bug 217266 - net-mgmt/icinga2 some parts of the API aren't working
Summary: net-mgmt/icinga2 some parts of the API aren't working
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Lars Engels
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 09:42 UTC by FiLiS
Modified: 2017-02-22 06:27 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (lme)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FiLiS 2017-02-21 09:42:23 UTC
it seems the rc script needs to pass /usr/local/sbin along with the PATH variable to icinga2 as it can't locate the binary otherwise.
changing

export PATH=$PATH:/usr/local/bin

to

export PATH=$PATH:/usr/local/bin:/usr/local/sbin

fixed this issue here:

https://github.com/Icinga/icinga2/issues/4709
Comment 1 FiLiS 2017-02-21 10:07:21 UTC
it will be fixed upstream

https://github.com/Icinga/icinga2/commit/a75d7d69ec2826227f13d373f00c4cbb267e8166

so the export line is just a workaround
Comment 2 commit-hook freebsd_committer 2017-02-21 11:57:24 UTC
A commit references this bug:

Author: lme
Date: Tue Feb 21 11:56:37 UTC 2017
New revision: 434522
URL: https://svnweb.freebsd.org/changeset/ports/434522

Log:
  net-mgmt/icinga2:
  - Add $PREFIX/sbin to PATH in icinga2.in to fix some API issues (icingaweb2-module-director now works!) [1]
  - Remove SIGPIPE trap in icinga2.in which was fixed upstream
  - Bump PORTREVISION

  PR:		217266 [1]
  Submitted by:	Philip Jocks
  MFH:		2017Q1

Changes:
  head/net-mgmt/icinga2/Makefile
  head/net-mgmt/icinga2/files/icinga2.in
Comment 3 commit-hook freebsd_committer 2017-02-22 06:13:45 UTC
A commit references this bug:

Author: lme
Date: Wed Feb 22 06:13:25 UTC 2017
New revision: 434567
URL: https://svnweb.freebsd.org/changeset/ports/434567

Log:
  MFH: r434522

  net-mgmt/icinga2:
  - Add $PREFIX/sbin to PATH in icinga2.in to fix some API issues (icingaweb2-module-director now works!) [1]
  - Remove SIGPIPE trap in icinga2.in which was fixed upstream
  - Bump PORTREVISION

  PR:		217266 [1]
  Submitted by:	Philip Jocks

  Approved by:	ports-secteam (junovitch)

Changes:
_U  branches/2017Q1/
  branches/2017Q1/net-mgmt/icinga2/Makefile
  branches/2017Q1/net-mgmt/icinga2/files/icinga2.in
Comment 4 Lars Engels freebsd_committer 2017-02-22 06:27:42 UTC
Fix committed, thanks!