we've an Icinga2 server with Icinga2 Director running on CentOS and we'll monitor several dynamic Linux hosts with Amazon Linux (AMI 2017.03). Unfortunately no ready to use rpm package is currently available for Amazon Linux. Therefore we compiled Icinga2 from source with 'cmake' what's going on without problems (but take a long time to compile).
To speed up the installation process we tried to create an Icinga2 rpm-file to roll out with each new AWS AMI client together with the agent file generated from Icinga2 Director. We installed all necessary packages like e.g. boost-devel and followed the official documentation on 'https://github.com/Icinga/icinga2/blob/master/INSTALL.md'. In addition we grab the latest version of the Icinga2 spec-file and added the following lines:
I'd like to point out that 'devtools-2' is not available for AMI Linux too. But the installed 'boost-devel' package on the machine is identically with the version Icinga2 reccommended (1.53).
The compile process finished without problems to us but the make process ends with the following error:
Unfortunately Google doesnt know a lot about this error. Therefore I've following questions to the community:
- How can I create a working rpm package from source on Amazon Linux (AMI 2017.03) ?
- Is there a more simple way to install an Icinga2 Agent on Linux (without bells and whistles like IDO, database, Vim, Nano) ?
Attached you'll find the error and output log of 'cmake'.
Thanks in advance for any help,