Package Details: icinga2 2.14.3-1

Git Clone URL: https://aur.archlinux.org/icinga2.git (read-only, click to copy)
Package Base: icinga2
Description: An open source host, service and network monitoring program
Upstream URL: https://icinga.com/
Licenses: GPL
Replaces: icinga2-common
Submitter: bebehei
Maintainer: julianbrost
Last Packager: julianbrost
Votes: 39
Popularity: 0.019724
First Submitted: 2014-06-23 01:10 (UTC)
Last Updated: 2024-11-12 14:54 (UTC)

Latest Comments

1 2 3 4 5 6 .. 15 Next › Last »

freaknils commented on 2023-01-24 18:34 (UTC) (edited on 2023-01-24 19:01 (UTC) by freaknils)

Currently Icinga2 does not work/build with current boost version 1.81 See https://github.com/Icinga/icinga2/issues/9618

There are some patches on Github: https://github.com/Icinga/icinga2/pull/9624/commits

This PKGBUILD patch worked for me:

diff --git a/PKGBUILD b/PKGBUILD
index df7c765..5fa259f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -46,11 +46,20 @@ install='icinga2.install'
 changelog="icinga2.changelog"
 source=("https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz"
         "$pkgname.tmpfiles"
-        "$pkgname.sysusers")
+        "$pkgname.sysusers"
+        "https://github.com/Icinga/icinga2/commit/99c2d69dc85dfcd044e4a83d4894aa52eedfe09d.diff"
+        "https://github.com/Icinga/icinga2/commit/5bcbc96e221bb3aafc370449941bfbd70939915c.diff")
 sha256sums=('11ea79d4d5c9840cfed19e459f2c9c0bd674add67b0ed9160fb3d7ad3e74fbc2'
             '1302b333f49ead14f8808a379535971501d3a0c1ba02a7bf7b4406b7d27c754c'
-            '2f946a33ea50a3c4400a81acd778e6411ffe5e2257a98004288b84a64f382810')
+            '2f946a33ea50a3c4400a81acd778e6411ffe5e2257a98004288b84a64f382810'
+            'c212301670eb406cff42a5c08641330a2cd37015789fab3fada9757b02415a90'
+            '3bae27d94e0fe781096a2bdcc83acffe4cd413c092acc45b138ea2b530ae6c47')

+prepare() {
+    cd "$pkgname-$pkgver"
+    patch --forward --strip=1 --input="${srcdir}/5bcbc96e221bb3aafc370449941bfbd70939915c.diff"
+    patch --forward --strip=1 --input="${srcdir}/99c2d69dc85dfcd044e4a83d4894aa52eedfe09d.diff"
+}
 build() {
   mkdir -p "$srcdir/$pkgname-$pkgver/build"
   cd "$srcdir/$pkgname-$pkgver/build"

bortzmeyer commented on 2023-01-02 12:50 (UTC)

Oooops, you were right, there was an old /usr/local/include/openssl from a previous experiment. Deleted, it now works, thanks.

bortzmeyer commented on 2023-01-02 12:06 (UTC)

@julianbrost I check and only OpenSSLS 3 seems installed:

% pacman -Q | grep openssl
openssl 3.0.7-4
perl-crypt-openssl-bignum 0.09-8
perl-crypt-openssl-dsa 0.20-4
perl-crypt-openssl-random 0.15-9
perl-crypt-openssl-rsa 0.33-2
python-pyopenssl 22.1.0-1
% pacman -Qo /usr/include/openssl/ssl.h
/usr/include/openssl/ssl.h is owned by openssl 3.0.7-4

PS: the #define you mention is conditional.

julianbrost commented on 2023-01-02 11:15 (UTC)

@bortzmeyer: I just did a clean build of the package and it worked just fine.

openssl 3.0.7-4 has the following in /usr/include/openssl/ssl.h:

#   define SSL_get_peer_certificate SSL_get1_peer_certificate

By any chance, is it possible that you are still using the openssl 1.1 headers and try to link against 3.0?

bortzmeyer commented on 2023-01-02 09:49 (UTC)

HEAD no longer works with ArchLinux, apparently because of the move to OpenSSL 3 :

% makepkg -s
...

[ 89%] Linking CXX executable ../Bin/Release/icinga2
/bin/ld: ../lib/base/CMakeFiles/base.dir/base_unity.cpp.o: in function `icinga::UnbufferedAsioTlsStream::GetPeerCertificate()':
/home/bortzmeyer/tmp/icinga2/src/icinga2-2.13.6/lib/base/tlsstream.cpp:33: undefined reference to `SSL_get_peer_certificate'
collect2: error: ld returned 1 exit status
make[2]: *** [icinga-app/CMakeFiles/icinga-app.dir/build.make:147: Bin/Release/icinga2] Error 1
make[1]: *** [CMakeFiles/Makefile2:2181: icinga-app/CMakeFiles/icinga-app.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

The problemy may be upstream: https://github.com/Icinga/icinga2/issues/9619

ArthurBorsboom commented on 2022-09-27 08:18 (UTC)

Recently libboost got upgraded, resulting in breaking Icinga2.

Sep 27 10:07:42 web3.aramgroup.com systemd[1]: Failed to start Icinga host/service/network monitoring system.
Sep 27 10:07:42 web3.aramgroup.com systemd[1]: icinga2.service: Failed with result 'exit-code'.
Sep 27 10:07:42 web3.aramgroup.com systemd[1]: icinga2.service: Main process exited, code=exited, status=127/n/a
Sep 27 10:07:42 web3.aramgroup.com icinga2[482]: /usr/lib/icinga2/sbin/icinga2: error while loading shared libraries: libboost_coroutine.so.1.79.0: cannot open shared object file: No such file or directory

Rebuilding Icinga2 fixes the problem.

Maybe bumping the package version number to force a rebuild might be a solution to prevent breakage?

svlc commented on 2022-01-13 19:37 (UTC) (edited on 2022-01-13 19:38 (UTC) by svlc)

Hello @julianbrost, please correct the Upstream URL at least here and at icinga2-git package website to "https://icinga.com". Thank you.

(Atm, http://www.icinga.org does not work at all and http://icinga.org redirects).

Acema commented on 2021-08-04 12:24 (UTC)

I use a Vim3 to monitor my home IT. Could you please support aarch64. I can support if you need any help for testing.

julianbrost commented on 2021-06-07 19:55 (UTC)

@Luxii These packages are part of the base-devel package group, which is assumed to be installed when building packages.

ArthurBorsboom commented on 2021-06-07 19:55 (UTC)

I believe they should not be added as dependencies.

bison and flex are part of the base-devel group.

The group base-devel is assumed to be already installed when building with makepkg. Members of this group should not be included in makedepends array.

Source: https://wiki.archlinux.org/title/PKGBUILD