Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings 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 Community, Checkmk Pro, Checkmk Ultimate MT

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