SNMP - Plugin - Basics

Hello @Jiuka,

I seem to missing a pre-requisite to using “Service.key()”.

Using:

def discovery_ani_storage(section: Service):
  print ("Discover:", Service)
  print ("Service Key:", Service.key())

And Getting Error:

Discover: <class 'cmk.base.api.agent_based.checking_classes.Service'>
  WARNING: Exception in discovery function of check plugin 'ANI_Storage': type object 'Service' has no attribute 'key'

CODE - check_plugin:

CODE - snmp_section: