Werk #12782 · Apr 22, 21
Activate inventory for kubernetes objects
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.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Inventory
- Versions:
- 2.1.0b1CommunityProUltimate + MT
- 2.0.0p4CommunityProUltimate + MT