I have a Munin supersampling plugin which returns high resolution data (sample rate of 1 second). The node offering this plugin is queried by two Munin masters, one of which is a version 1.4 instance and unable to process the plugin's data. More precisely, the 1.4 master is spitting a bunch of "Setting unknown option" warnings with each invocation of munin-update.
What I ideally would like to see is the plugin returning different sets of data depending on which of the Munin servers is querying it.
What I have found so far is that I could run different instances of munin-node on different ports with different configurations. As this poses management overhead and I would like to keep management easy, I wonder if it would be possible to do make some changes to the plugin's code to achieve the desired goal.
Is there a way to supply an environment variable in the Munin master configuration which could be evaluated upon plugin execution? Or is the master's IP address or host name present in some variable pre-filled by munin-node?