Closed ulrichmonji closed 1 year ago
thruk cannot talk to the icinga api, Thruk uses livestatus only. You need to enable the livestatus module and connect to that one. No certificate required for that.
Thanks for your reply,
In fact, it is Ok via livestatus Module. The module were not installed on my icinga2 containers, i rebuilt a new icinga2 image which contains this module and ewerything works fine
On future release, is Thruk could talk to icinga api, or it is not on roadmap ?
Regards
There are no plans to support the icinga api. Livestatus is way faster and better.
Hello,
Apologize if my post is not in a good place. Do not hesitate to tell where i can post if needed...
My problem is, I would like to connect my icinga2 server as Thruk backend. But i am facing some TLS issues, (no client certificate).
Errors messages
On thruk IHM, when i tried to connect to icinga2 by http type, there is my error on icinga2 server:
Platform caracteristics
I am working on docker containers, i created two containers, One is icinga-master via icinga2 image and the other is Thruk via custom image builded. Both of them ran on the same bridge docker network.
Icinga configuration
Copyright (c) 2012-2023 Icinga GmbH (https://icinga.com/) License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl2.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
System information: Platform: Debian GNU/Linux Platform version: 11 (bullseye) Kernel: Linux Kernel version: 3.10.0-1160.88.1.el7.x86_64 Architecture: x86_64
Build information: Compiler: GNU 10.2.1 Build host: buildkitsandbox OpenSSL version: OpenSSL 1.1.1n 15 Mar 2022
Enabled features (
icinga2 feature list
)Config validation (icinga2 daemon -C)
Thruk Configuration
Thruk Dockerfile:
Launching Thruk containers:
Thruk version
Copying icinga2 certificates to thruk containers
Permission on icinga certificates on thruk containers (Read permissions seted) root@thruk:/# ls /tmp/ -l
I added Icinga CA to trustore of thruk containers :
I Enabled Icinga feature on Thruk config (/etc/thruk/thruk.conf)
I created an agent ticket for icinga API
Here is my Thruk config (/etc/thruk/thruk_local.conf)