Chained input plugins

Hi,

is there a way to chain more input plugins in a way that the next plugin get input by previous one?

I’m facing following issue, I need to grab all mac addresses from an old Cisco by SNMP. A first call is needed to get all VLANS then I should iterate through all vlans to get all infos for each one beacuse I need to concatenate Vlan Id to SNMP “community string” with @.
As far as I know I could use EXEC but before that I’m here to ask a better solution.

Thanks in advance!

It’s not possible to chain input plugins as their execution order is not determined and their execution is not related in general. However, maybe you can use the SNMP lookup processor to resolve your VLAN info. You can concatenate the strings e.g. using the template processor as processors (and aggregators) can be chained…

There is no support at all for dynamic community string. Best way is to have another tool generate the telegraf config by creating a [[inputs.snmp]] for each community string to be used…