Werk #12782: Activate inventory for kubernetes objects

Component HW/SW inventory
Title Activate inventory for kubernetes objects
Date Apr 22, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p4 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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.

To the list of all Werks