Hi Team,
Version 1.19
I’m liking the product so far. I am currently however struggling to come up with a solution for dynamically adding and removing monitored network devices to the variable agent_host of the [[input.snmp]] plugin. Our current model utilizes Telegraf as a producer agent that collects SNMP traffic from our network devices. Forwarding to a Kafka broker and then consumed by an additional Telegraf agent to be munged by a script, and forwarded to an Influxdb instance.
Our ideal state is that the Telegraf producer is running a [[Input.exec]] script that poles our Network database API every x minutes and pulls a list of the latest approved monitoring devices. This will allow us to automatically onboard them.
I tried using Environment variables to add the devices on the fly however the telegraf.conf file is stored in-memory on start-up.
I’m guessing there have been others who have had this problem in the past, so I thought I’d ask the community.
Any guidance would be greatly appreciated.
Thanks,
Jesse