Werk #12782: Activate inventory for kubernetes objects

Komponente HW/SW-Inventory
Titel Activate inventory for kubernetes objects
Datum 22.04.2021
Checkmk-Editon Checkmk Raw (CRE)
Checkmk-Version 2.0.0p4 2.1.0i1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

A host is created for each kubernetes endpoint. On a checkmk site with disabled inventory (the default) the endpoint host does not have any services.

As Hosts without services are invalid, checkmk automatically adds a ping service which fails, because the endpoint host is created from piggyback data and ist not reachable. The error message looks like: "check_icmp: No hosts to check"

This werk adds the label "cmk/kubernetes:yes" to kubernetes related hosts, so the issue can now be fixed by creating an inventory rule that activates the inventory on kubernetes endpoint hosts:

Go to "Setup" → "HW/SW inventory rules" → "Do hardware/software inventory" → "Create rule in folder":

  • "Status data inventory" → "Do status data inventory"
  • "Host labels" → "has" → "cmk/kubernetes:yes"
  • → Save

    This werk alters the default configuration. Sites created with checkmk 2.0.0p4 or later automatically enable the inventory for kubernetes objects.

    Zur Liste aller Werks