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
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.0.0i1 1.7.0i1
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed

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