Since someone pointed out that my 'Has anyone created an MQTT Collectd
plugin?' tweet is the the top hit on google (/me waves to @njh), I
figured my "no, not yet" folllowup deserves more than 140 characters.
Wishlist: an MQTT Plugin for Collectd.
In theory the guidelines are clear -
https://collectd.org/wiki/index.php/Plugin_architecture but even
that's beyond my limited C knowledge.
Considerations:
I'd assumed that the configuration of the plugin would be to give it a
broker and one or more topics to subscribe to.
I'm not sure how the regular timed cycle of many monitoring / graphing
tools such as collectd would cope with the whole concept of a publish
model - for example if you publish a value only on change (ie,
temperature, users logged on), would you expect to update the plugin
twice or 0 times in that polling cycle? Suggestions welcome
Whilst this probably could be kludged together with some of the
command-line MQTT tools (such as mosquitto_sub) and a wrapper, or
using one of the Perl / Python libraries and the collectd perl/python
plugins, they seem a less elegant solution.
So - I've not had chance to do anything with it (and haven't got a
summer student, especially one with C skills), but think this could be
a nice addition to the community.
Posted here for discussion / ideas
Thanks
Andrew