I try to write some SNMP checks for 2.0.0pX
Unfortunatly the documentation https://docs.checkmk.com/latest/en/devel_check_plugins.html does not help very much. I searched this forum and found some hints, but nothing got me in the right direction yet. The SNMP checks delivered with checkmk that i found so far are using the old methods.
We have multiple devices that deliver many information and state by SNMP. I wanted to try something simple first and check the Dell Compellent Power Supply.
For the Dell Compellent there are some checks already delivered with check_mk but those are using the legacy checks as well.
I could also not find any SNMP check using v2 mechanism in the exchange.
So here is what i have and tried so far:
Partially output of OIDs
#.1.3.6.1.4.1.674.11000.2000.500.1.2.1.0 Dell-Compellent Storage Center
#.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.2.1.1 1
#.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.2.1.2 2
#.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.3.1.1 1
#.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.3.1.2 1
#.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.4.1.1 Power Supply 1
#.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.4.1.2 Power Supply 2
#.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.5.1.1 Empty
#.1.3.6.1.4.1.674.11000.2000.500.1.2.17.1.5.1.2 Empty
Error in agent based plugin dell_compellent_power: invalid characters in OID descriptor: ' '
I would really appreciate a link to a good and complete documentation for writing 2.0 SNMP checks. Or the name of a delivered plugin that already uses the new way of SNMP checks to get started.
a bit further, i discovered a few SNMP checks using the new mechanisms. So I tried to adapt it to my check.
Well i do not get an error anymore, but no inventory or check as well…
Maybe someone can push me in the right direction. What i got so far:
Thanks a lot sander. I learned another bit of Python and that i will have to learn Python before i continue.
Maybe the other compellent checks will be implemented as default cmk plug-in soon.
I just thought i could “easily” build checks for PowerSupply, Fan and Volume checks that the, not working with 2.0, check from the exchange had. Well, not that easy
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.