I have added more than 50 devices in Inputs.SNMP plugin, but there is almost 1-2 hours delay to push the data to InfluxDB. I dont see any issues on the time zone as it was setup accurately.
Could one of you please confirm if I need to modify anything within Telegraf plugin?
Here is my current configuration of Telegraf for Inputs.snmp
Thank you Srebhan for your response. I did executed the telegraf…–test for specific conf file, however the data still shows almost an hour delay in InfluxDB.
Considering 50+ servers in same telegraf plugin, associated with lot of mib files, not sure if this causing an issue in executing all mib files.
I don’t think the amount is an issue as we have people querying hundreds of servers with one instance. Anyhow, are you sure it is a delay or can it be a timezone or clock issue? In InfluxDB the times are stored as UTC. Is the clock of the telegraf machine set correctly?
What do you get if you convert the timestamp from one of your results in the --test output on a website like www.unixtimestamp.com? Does it say a few seconds ago?
Thank you @Hipska for your response, even I am planning to spilt the agents based on the region wise. I will keep you an update once I validate the output. Thanks
May I know where I can validate the unix timestamp converter within Telegraf.
Today I tried to split the files, there are 4 files added and each file has 10 agents with following interval configuration. But still I am getting same error.
Simple: If you run telegraf with --test you will see the metrics it collected. The last part is the timestamp, copy that and paste it into www.unixtimestamp.com and click convert. Look what is in the section “Relative”.
About your snmp error; It means that one of those 10 devices are not responding in time.
Some tips:
You don’t need to split the configs over multiple files, it can be all in one file.
Add an descriptive alias to each input, then you can see in the error which one exactly is having issues.
As per Telegraf Best Practices, I have split the SNMP agents into multiple files, and now each telegraf.conf file has 10 agents in inputs.snmp.
I did extended the interval time upto 150sec but still getting same error from all 4 files.
telegraf: 2023-03-29T10:46:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 2m0s
telegraf: 2023-03-29T10:46:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 2m0s
telegraf: 2023-03-29T10:46:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 2m0s
telegraf: 2023-03-29T10:46:00Z W! [inputs.snmp] Collection took longer than expected; not complete after interval of 2m0s
That was just a link explaining how code blocks work. Of course we want you to share the config in code blocks in this thread here on influxdata community.