Package Details: icinga2 2.14.5-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: 40
Popularity: 0.44
First Submitted: 2014-06-23 01:10 (UTC)
Last Updated: 2025-02-09 19:56 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 15 Next › Last »

julianbrost commented on 2019-03-13 18:02 (UTC)

@malina: There should be a more specific error message from ld somewhere in the output stating why it exited with an error code.

wuestengecko commented on 2019-03-13 17:11 (UTC)

@malina That 90% bit is a little strange, I can build it fine with -DICINGA2_UNITY_BUILD=OFF, and "Linking CXX executable ../Bin/Release/icinga2" is at 100% for me - no matter if on my "live system" or in a chroot.

Seeing how you had out-of-memory issues to begin with - might that be the case here too? Try adding a swapfile of 4 GB or so.

Generic troubleshooting questions, if that didn't work: Did you make any other change to the PKGBUILD? Did you make any changes to your makepkg.conf and/or create a $HOME/.makepkg.conf? How exactly do you build, do you use makepkg directly or any helper tool?

malina commented on 2019-03-13 00:24 (UTC) (edited on 2019-03-13 00:36 (UTC) by malina)

I can't compile the program, it always stops with the same error:

[ 90%] Linking CXX executable ../Bin/Release/icinga2 collect2: error: ld returned 1 exit status
make[2]: *** [icinga-app/CMakeFiles/icinga-app.dir/build.make:655: Bin/Release/icinga2] Error 1
make[1]: *** [CMakeFiles/Makefile2:2331: icinga-app/CMakeFiles/icinga-app.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

Does anyone have an idea?

malina commented on 2019-03-11 22:25 (UTC) (edited on 2019-03-11 22:40 (UTC) by malina)

If you can't compile the program because of a memory issue, edit the PKGBUILD file (build function, 65. line) and insert the following line to cmake parameters:

-DICINGA2_UNITY_BUILD=OFF \

Here is the reason: https://icinga.com/docs/icinga2/latest/doc/21-development/#builds-unity-builds

The compile will be very slow, but at least it does.

julianbrost commented on 2019-01-17 10:51 (UTC)

@freaknils: None of my systems has termcap installed and I can build and run icinga2 just fine. Why do you think it is required?

freaknils commented on 2019-01-17 08:23 (UTC)

termcap is needed for build and runnning Icinga.

Please add it to dependencies

julianbrost commented on 2018-10-19 11:15 (UTC)

@rixx: The packages should create the icinga user with /var/spool/icinga2 as its home directory (see https://aur.archlinux.org/cgit/aur.git/tree/icinga2.sysusers?h=icinga2#n1) which should work fine. Are you sure the user didn't already exist before?

rixx commented on 2018-10-18 17:33 (UTC)

Can you please give /var/lib/icinga as HOME to the icinga user at creation? Otherwise, mail(1) fails in the default notification script, since mail(1) relies on the executing user's home being present. If you set /dev/null as home, as you do currently, mail tries to create a file /dev/null/.rnd, and coredumps.

anonfunc commented on 2018-10-13 03:31 (UTC)

Diff for icinga2 2.10.0: https://gist.github.com/AnonFuncsAreAwesome/72f6ed3793601f4e31058afa2411294d

Hope you can use something. Builds for me in clean chroot.

codiflow commented on 2018-10-02 12:07 (UTC) (edited on 2018-10-02 13:34 (UTC) by codiflow)

I got this issue during the build-process:

[ 13%] Building CXX object lib/base/CMakeFiles/base.dir/base_unity.cpp.o
In file included from /home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/build/lib/base/base_unity.cpp:63:
/home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/lib/base/tlsutility.cpp: In Funktion »int icinga::MakeX509CSR(const icinga::String&, const icinga::String&, const icinga::String&, const icinga::String&, bool)«:
/home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/lib/base/tlsutility.cpp:329:60: Warnung: »RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)« ist veraltet [-Wdeprecated-declarations]
  RSA *rsa = RSA_generate_key(4096, RSA_F4, nullptr, nullptr);
                                                            ^
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/bio.h:13,
                 from /home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/lib/base/base64.cpp:21,
                 from /home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/build/lib/base/base_unity.cpp:4:
/usr/include/openssl/rsa.h:234:1: Anmerkung: hier deklariert
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^~~~~~~~~~~~~~~~~~
In file included from /home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/build/lib/base/base_unity.cpp:63:
/home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/lib/base/tlsutility.cpp:329:60: Warnung: »RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)« ist veraltet [-Wdeprecated-declarations]
  RSA *rsa = RSA_generate_key(4096, RSA_F4, nullptr, nullptr);
                                                            ^
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/bio.h:13,
                 from /home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/lib/base/base64.cpp:21,
                 from /home/USERNAME/.cache/pacaur/icinga2/src/icinga2-2.9.1/build/lib/base/base_unity.cpp:4:
/usr/include/openssl/rsa.h:234:1: Anmerkung: hier deklariert
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^~~~~~~~~~~~~~~~~~

Using aurman instead of pacaur for installation showed me the reason:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/site-packages/aurman/utilities.py", line 202, in sudo_loop
    if run(["sudo", "--non-interactive", "-v"]).returncode != 0:
  File "/usr/lib/python3.7/subprocess.py", line 453, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.7/subprocess.py", line 756, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1430, in _execute_child
    restore_signals, start_new_session, preexec_fn)
OSError: [Errno 12] Nicht genügend Hauptspeicher verfügbar

So it seems theres to less RAM (at least 1.37G) on this device available.

After adding a swap file (https://wiki.archlinux.org/index.php/swap) with 4GB everything compiled fine (2GB failed).