X509: Import Services and assign to Hosts

Hello all,

the following setup:

Our hosts are created with the FQDN. This way each host is uniquely identifiable. Now I want to activate the certificate monitoring for the hosts. I have installed the x509 module and scan some networks regularly, so I have already imported some certificates. Now I want to monitor the corresponding certificates for each host. What is the best way to do this? My idea was to import all found hosts via the Icinga Director and the x509 source, but this leads to problems with “virtual hosts”. The next idea would be to import all x509 certificates as a service, but this fails with the message “Cannot store a Service object without a related host or set”. Maybe I am thinking too complicated and this can all be done easier. In short: I have hosts, the FQDNs do not necessarily match the certificates. I want to monitor each certificate for the host.

  • Director version (System - About): 1.10.2
  • Icinga Web 2 version and modules (System - About): 2.11.4
  • Icinga 2 version (icinga2 --version):r2.14.0-1
  • Operating System and version: CentOS 7-9
  • Webserver, PHP versions: Apache 2.4.6, PHP 7.3.33
  • Modul x509: 1.2.1