The Checkmk Conference #11 is happening – live on May 20-21! Watch now

Werk #11480: snmp_info, mgmt_snmp_info: Add host label "cmk/device_type" discovery

Component Checks & agents
Title snmp_info, mgmt_snmp_info: Add host label "cmk/device_type" discovery
Date Sep 19, 2020
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.0.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

From now on, the sysDescr is parsed for the following strings:

  • appliance
  • firewall
  • printer
  • router
  • sensor
  • switch
  • ups
  • wlc

If one string (foo in this example) is found, the host will discover the host label "cmk/device_type:foo".

Because sysDescr is the only reliable way to get the device type from a snmp device, but not every description contains the strings above, we also have to add device specific host labels via the regarding check plugins. This will be added with further werks.

The implementation takes care, that the device specific host label always wins about the strings in snmp_info and mgmt_snmp_info.

To the list of all Werks