I have a number of linux servers that are configured a ‘Icinga clients’ - that is, they send in reports to the master server from cron jobs. I have been using icinga2 node wizard to set up all the servers, but I have a NAS appliance that isn’t easy to install icinga2 on. The OS is based on a version of Linux - the version is displayted (in the web interface) as QuTS hero TVS-h1688X.
I remember some years ago, and it is possible that I mis-remember, that I set this up in another company without using the wizard; it was a more manual process involved key pairs etc, and I don’t think I had an icinga2 service running on the clients. Is this possible, and if so, are there instructions for it somewhere?
root@vogon:~# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.14.2-1)
Copyright (c) 2012-2024 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: 5.10.0-28-amd64
Architecture: x86_64
Build information:
Compiler: GNU 10.2.1
Build host: runner-hh8q3bz2-project-575-concurrent-0
OpenSSL version: OpenSSL 1.1.1w 11 Sep 2023
Application information:
General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2
Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var
Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
I remember setting up a Pki object in the past - some 3 years ago, I think - which appears to something similar to what you are suggesting; but I can’t find documentation for this object in the docs now. Does that not work any more?
What I need is simply to be able you update the icinga2 master via the API; when I try to do this with a curl command, it fails with a message:
Could not find a suitable TLS CA certificate bundle, invalid path: /var/lib/icinga2/certs/ca.crt
This seems clear enough, and I can copy the ca.crt from the master, but looking at one of the clients that are already working, I can see :