Hello, everyone,
I am relatively new to Check_MK and would now like to query a device via SNMP.
The device is a very simple thermometer.
Unfortunately, the description is only partially correct.
Is there a “pattern” somewhere that you can use?
I tried to look at a normal AgentPlugin:
register.snmp_section(
name="snmp_iptermo",
detect = startswith(".1.3.6.1.2.1.1.1.0", "TH"),
fetch = SNMPTree(
base = '.1.3.6.1.4.1.3444.1.14.1.2.1.10',
oids = [
'1', #temperature
'2', #Humidity
'3', #Dew point
],
),
check_function=check_snmp_iptermo,
discovery_function=discover_snmp_iptermo,
)
Unfortunately there is an error message
TypeError: snmp_section() got an unexpected keyword argument 'check_function'
Does anyone have a pattern for a very simple SNMP query?
Many Thanks