On Friday, November 25, 2016 at 5:36:10 PM UTC+2, Raul Gonzalez wrote: > I have several snmp agent with different community. Almost all has the same > data to collect throw snmp but is really painful to maintain so many > [[inputs.snmp]] with same fields and oids. Is there a way to put a community > to each agent? > > > With collectd it is easy because it maintains Host (agent) and Data serated > but I can't find a way to do the same in telegraf.
There is currently no way to relate multiple hosts / communities with the same data polling section, due to the serial way Telegraf's configuration file is parsed. This can indeed result in long configuration files. Some internal scripting DSL functionality in Telegraf's config file would help with these kinds of issues but it would be a large feature to implement. -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/ef3f8499-934a-4c4b-884f-077b1c3a0f8c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
