57 Commits

Author SHA1 Message Date
sthen
882e8a956d fix package name for icinga-web2 in README; pointed out by rpe@ 2015-12-24 12:57:17 +00:00
sthen
430fbf9e04 mark as broken on sparc64, toolchain issues (errors out with gcc 4.2,
hangs with gcc 4.9).
2015-12-08 13:49:36 +00:00
sthen
a08b89d7f9 In the normal icinga2 build, disable tests from building (I previously had a
check for "make test"); in some occasions if devel/libconfig is installed at
build time it can cause the wrong libconfig to be picked up, resulting in
build failures. Add a pseudo-flavour to enable them if needed.

(I didn't run into this myself but, as found by ajacoutot@, in some builds
CMake decides to list -L/usr/local/lib before -L${WRKBUILD}/Bin/Release).
2015-11-30 13:11:08 +00:00
sthen
95794b7e49 update to icinga2-2.4.1 2015-11-26 18:03:02 +00:00
sthen
412cc39bb3 remove build dep on ports flex 2015-11-19 20:17:15 +00:00
sthen
7bd6d99f2d update to Icinga 2 v2.4.0, featuring a new RESTful API using basic auth
or client certificates for:

- filters, types, permissions
- query/create/modify/delete config objects at runtime
- status queries for global stats
- actions (e.g. acknowledge all service problems)
- event streams
2015-11-16 20:29:55 +00:00
sthen
66f82dd6f8 also set group ownership on icinga2 cmd dir 2015-11-16 12:51:42 +00:00
sthen
76fa493e77 allows chroot()ed web interfaces to find the command socket.
- patch constants.conf to use /var/www/var/run/icinga2 as default RunDir
- modify startup script to create above RunDir and symlink into /var/run/icinga2
2015-11-16 12:19:12 +00:00
sthen
44de8756a5 try building icinga2 with ports gcc (4.9) on sparc64, it fails with system gcc
{standard input}:38466: Error: Illegal operands: %lo requires arguments in ()
c++: Internal error: Illegal instruction (program cc1plus)
2015-11-14 22:56:24 +00:00
sthen
bc79fa9427 Add upstream patches for Icinga2 so that opening a fifo doesn't block
open()s in other threads, fixing an issue where the daemon doesn't start
correctly when the command listener is enabled.

Many thanks to dnsmichi and gunnarbeutner from Icinga for tracking this
down and fixing it.
2015-11-09 22:36:38 +00:00
sthen
dfdf28f57a trimmed a bit too much in previous, reinstate SYSCONFDIR subst. 2015-10-21 19:10:34 +00:00
sthen
26d7d5ac1d clean up Makefile, install editor syntax files in the right place 2015-10-21 09:34:03 +00:00
sthen
ea11becfae Adjust the icinga2 port:
- Replace previous backout with fixes from Gunnar Beutner (upstream):

 . Make sure the timer thread is gone when calling fork()
 . Ensure that the main thread pool gets re-initialized properly after fork()

- Add a check so that 'make test' fails early with a useful error if the
libconfig package is installed; the objects in the build directory don't
have a finalized rpath and they are looking in /usr/local/lib before the
build directory, so the wrong libconfig so is picked up.

I think this port should now be in good shape, please let me know if you're
using it and run into problems with forking etc.
2015-10-21 09:03:22 +00:00
sthen
5fd6c0be1c rename the icinga2 database subpackages to icinga2-ido-XXsql, to match the
standard package names used on other OS.
2015-10-20 21:34:29 +00:00
sthen
1bffdd63b8 Adjust the pexp regex in the rc script, it needs a trailing .* to match
the process arguments when they're modified after a reload.
2015-10-20 20:59:40 +00:00
sthen
7cdc358e1e add ticket url to comment in patches. 2015-10-20 14:08:57 +00:00
sthen
e48b149f78 Update to icinga2-2.3.11 and unbreak by adding patches to revert oldish
upstream commit 86819f446e2 which broke daemon activation on OpenBSD.
Without this reversion ConfigItem::ActivateItems() doesn't get any
further after the call to DynamicObject::RestoreObjects().
2015-10-20 13:54:13 +00:00
sthen
0424123a65 remove @extraunexec that end up under /var/run as well, req'd by aja 2015-08-25 15:22:38 +00:00
sthen
f9f291622e - remove @samples that end up under /var/run, req'd by ajacoutot
- on the off-chance, try an update while there
2015-08-25 13:53:28 +00:00
sthen
ce974b46cc use su -m instead of -s /bin/sh, suggested by millert
add some missing -c
2015-07-07 14:44:58 +00:00
sthen
d5ffe85b7d Remove use of sudo from pkg READMEs in a few ports as packages and their
instructions are meant to work on a fresh install.

- easy cases: replace some '$ sudo somecommand' with '# somecommand'
(while there I've swapped some "${RCDIR}/foo start" with "rcctl foo start").

- replace some 'sudo -u user somecommand foo bar' with
'su -s /bin/sh user "/path/to/somecommand foo bar"' and similar.
Not pretty with the -s, but many of the uids that need to run
these commands have /sbin/nologin as their usual shell.
2015-07-06 11:25:36 +00:00
sthen
368b70a24b Slightly better BROKEN marker for icinga2. Any clues very welcome...
ConfigItem::ActivateItems() calls DynamicObject::RestoreObjects().
DynamicObject::RestoreObjects() runs to the last line of the function,
however control is not returned to the following line in
ConfigItem::ActivateItems() (i.e. the calling function).
2015-07-02 20:16:54 +00:00
sthen
fe4485895b update to icinga2-2.3.5, still no closer to solving the problems though so
it remains marked BROKEN.
2015-06-30 09:19:48 +00:00
sthen
1a91fae5ba update to icinga2 2.3.4. mark BROKEN until I can get some handle on what's
going on with daemonization (not backgrounding when expected) and hangs seen
in some cases.
2015-05-12 09:37:03 +00:00
sthen
e9400759bc Update to icinga2-2.2.4. Change rc script to use "icinga2 daemon" and rc_bg to
force running in the background; it was previously using "icinga2 daemon -d",
but since 2.2.2 this has been hanging on OpenBSD.

Disable vfork as was done upstream on MacOS (to stop a hang there) in the
hope it may also stop a runtime hang seen occasionally here.

There are still some odd things going on and I don't think this is production-
ready on OpenBSD yet, so the warning in DESCR-main remains, but I think this
is not worse than 2.2.1.
2015-02-06 22:53:27 +00:00
landry
abf237485f Broken on hppa for missing atomic ops 2015-01-20 18:42:38 +00:00
sthen
3d346c3a42 tweak DESCR, make it clear that this isn't considered entirely stable on OpenBSD 2015-01-04 21:47:14 +00:00
sthen
e8fbb5fe11 revert to icinga2 2.2.1, at least daemonizing fails on openbsd, possibly more. 2015-01-04 21:32:24 +00:00
sthen
da8b773213 update to icinga2-2.2.2, various bugfixes 2014-12-19 01:20:16 +00:00
sthen
4ce6614320 Remove some bogus information about web chroot setup that was modified from
the icinga1 readme, it can go back later when icinga web 2 is ready. Problems
spotted by florian@.

Mention that icinga2-migration is now a package.
2014-12-17 22:10:30 +00:00
sthen
41035205ca update to icinga 2.2.1 2014-12-01 23:45:58 +00:00
sthen
d4b9694e05 remove WRKDIST=${WRKDIR}/${DISTNAME} lines, they are the default anyway 2014-11-23 20:28:01 +00:00
sthen
67271221d0 disable the icinga2 code which forces rlimit setting, it is responsible for
random crashes at startup (typically with no usable backtrace) on OpenBSD
2014-11-22 00:14:05 +00:00
sthen
7c563b96bb update to icinga2 2.2.0 2014-11-22 00:13:03 +00:00
brad
b94a402501 Switch from using MySQL to using MariaDB attempt #2. MariaDB is a drop-in replacement.
ok sthen@
2014-09-13 18:09:20 +00:00
ajacoutot
9ecb6ea3d9 /etc/rc.d -> ${RCDIR}
(as pedantic and useless as /usr/local vs LOCALBASE|PREFIX but well...)

ok sthen@
2014-07-19 22:36:13 +00:00
sthen
19ca9bed1a don't use "echo 'pkg_scripts="${pkg_scripts} icinga' >> /etc/rc.conf.local"
examples

chase monitoring-plugins change (missed commit yesterday)
2014-07-12 11:22:10 +00:00
sthen
e22662c1d7 update to icinga 2.0.1, I still see all tests failing (seems to be dlopen
related), but now it seems to start reliably without segfaults.

(still not linked to the build at this point).
2014-07-10 15:01:17 +00:00
ajacoutot
5ecbbd0b5d rc.conf.local is always under /etc. 2014-07-10 12:58:31 +00:00
rpe
36ac6aba66 Add commit id to ensure to fetch the exact same distfile even upstream
commits to the tag after the initial release.

OK sthen@
2014-07-10 11:14:20 +00:00
rpe
db0f78f1bc Switch to new way of handling github.
OK sthen@
2014-07-09 15:06:06 +00:00
sthen
6677ed4fd3 add todo comment re intermittent segfaults at startup (so far resistant to
getting a core dump)
2014-07-01 22:55:27 +00:00
sthen
e99fc4d5b2 s/icinga/icinga2 in "mv-into-chroot" instructions 2014-06-27 00:28:19 +00:00
sthen
4cc264bba2 remove obsolete comments 2014-06-27 00:28:02 +00:00
sthen
9e8ddf0f3a typo in @sample line 2014-06-27 00:16:08 +00:00
sthen
84fcd57b0e LIB_DEPENDS on libexecinfo 2014-06-27 00:14:27 +00:00
sthen
e46dad478d Add a dedicated _icingacmd group for use with icinga2 command pipes and livestatus 2014-06-27 00:09:29 +00:00
sthen
866e91c181 s/BACKTRACE_/Backtrace_/ now the local file in cmake has been synced with the
cmake 3 version
2014-06-25 11:14:50 +00:00
sthen
ac6271f826 pick up backtrace() functions from libexecinfo by using FindBacktrace.cmake
XXX comments because ports version of FindBacktrace uses BACKTRACE_ rather
than Backtrace_ as used in the version committed to cmake 3
2014-06-24 16:51:35 +00:00
sthen
2af857bb41 plugins are from a separate pkg so use LOCALBASE not TRUEPREFIX 2014-06-24 16:49:54 +00:00