Access HostConfig Data cmk.agent_based.v2 SNMP CheckPlugin

Hello,

i am trying to develope a plugin that is intended to sanitize our checkmk hostconfiguration by comparing:

  • Hostname to SNMP Hostname (.1.3.6.1.2.1.1.5)
  • Host address to DNS A-Record
  • Hostname to DNS PTR-Record

i am able to obtain the SNMP Hostname by following the article: Developing SNMP-based check plug-ins .

How do i gain access to the hostname and IP-Adress of the host?

I have code in my check_snmp extension that does a similar thing:

1 Like