jqrun
(jqrung)
December 18, 2019, 4:58am
1
sudo apt-get install -y cmake make build-essential pkg-config libssl-dev libboost-all-dev bison flex libsystemd-dev
sudo apt-get install -y libmysqlclient-dev libedit-dev libyajl-dev libpq-dev
cd icinga2-2.9.1
mkdir build && cd build
cmake … -DCMAKE_INSTALL_PREFIX=/usr
make
[ 58%] Building CXX object lib/icinga/CMakeFiles/icinga.dir/icinga_unity.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
lib/icinga/CMakeFiles/icinga.dir/build.make:299: recipe for target ‘lib/icinga/CMakeFiles/icinga.dir/icinga_unity.cpp.o’ failed
make[2]: *** [lib/icinga/CMakeFiles/icinga.dir/icinga_unity.cpp.o] Error 4
CMakeFiles/Makefile2:1655: recipe for target ‘lib/icinga/CMakeFiles/icinga.dir/all’ failed
make[1]: *** [lib/icinga/CMakeFiles/icinga.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 58%] Built target cli
Makefile:160: recipe for target ‘all’ failed
make: *** [all] Error 2
aflatto
(Assaf Flatto)
December 18, 2019, 9:26am
2
Why are you trying to compile and not use binaries for your distribution ?
1 Like
jqrun
(jqrung)
December 18, 2019, 9:28am
3
work needs.
servers is old .
But the latest version is installed via apt-get
Client cannot connect to server
winem
(Marcel Weinberg)
December 18, 2019, 9:36am
4
Please provide more details.
“Latest version is installed via apt-get” does that mean the latest version that is available at the old (what does that mean?) server or does this just apply to servers with up-to-date software?
“Client cannot connect to server” - Especially this part is interesting. Additional information like the icinga2 version on the client and server and error messages would be helpful to assist you.
Best,
Marcel
jqrun
(jqrung)
December 18, 2019, 10:49am
5
jqrun:
icinga2-2.9.1
server install icinga2-2.9.1
client install 2.11.2
so Remote Icinga instance ‘xxxx’ is not connected to ‘xxx’
dnsmichi
(Michael Friedrich)
December 18, 2019, 12:18pm
6
2.9.1 is still available in the repository, e.g. for RHEL7: http://packages.icinga.com/epel/7/release/x86_64/
You can manually rsync the repository path and install these packages.
Cheers,
Michael
jqrun
(jqrung)
December 19, 2019, 2:15am
7
thank you
i found
sudo apt-get install -y icinga2-bin=2.9.1-1.bionic icinga2-common=2.9.1-1.bionic icinga2-doc=2.9.1-1.bionic libicinga2=2.9.1-1.bionic
log1c
December 19, 2019, 8:36am
8
This will not work. Afaik the agent can’t (or at least shouldn’t) be newer than the master.
https://icinga.com/docs/icinga2/latest/doc/06-distributed-monitoring/#versions-and-upgrade
jqrun
(jqrung)
December 19, 2019, 8:51am
9
thank ,My test did fail like this