I am currently writing my first special agent (to monitor a Things Network Gateway). I am using check_mk 1.6.0p19. I have it almost working, but I have problems writing the actual check.
I wrote a parse function and registered it using check_info, but it never gets called, instead the “unparsed” regular info structure is passed into the inventory and check functions…
The code is there: https://gist.github.com/mabauer/b4db1bf821d5e25aedbba6cf06a8519c
If I run cmk --debug --checks=ttn_gateway.lastseen --cache -vvII ttig,
the pprint at the top of the inventory function will print parsed as:
[[u’Markus’, u’TTIG’, u’(The’, u’Things’, u’Indoor’, u’Gateway’, u’2.0.0):’, u’52’]]
instead of the dictionary that should have been built in the parse function…
Can someone help me howto fix or further debug this?