Closed bacchus21 closed 5 months ago
Does anyone have clues why this message shows?
Feb 26 19:05:23 collectdsvr001 collectd[25195]: plugin_read_thread: read-function of the snmp-XXXXGW1' plugin took 17.866 seconds, which is above its read interval (10.000 seconds). You might want to adjust the
Interval' or `ReadThreads' settings.
@pyr , @octo , @tokkee, @mrunge , @jkohen , @sunkuranganath , @kwiatrox , @bkjg , Please advise. Thank you in advance.
From: https://github.com/collectd/collectd/blob/main/src/collectd-snmp.pod
Because querying a host via SNMP may produce a timeout the "complex reads" polling method is used. The ReadThreads parameter in the main configuration influences the number of parallel polling jobs which can be undertaken. If you expect timeouts or some polling to take a long time, you should increase this parameter. Note that other plugins also use the same threads.
Some of your hosts are slow to respond.
(If e.g. network connection is not working, there could be 30s timeout.)
@eero-t 's answer is probably correct. If hosts take more than 10s to query, you have to decrease the query frequency. If slow targets starve the thread pool, add more threads.
These are the continuous findings on my previous posting, https://github.com/collectd/collectd/issues/4088
Expected behavior
Setting on collectd.conf /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// <Host "XXXXGW1"> Address "10.XX.XX.1" Version 2 Community "XYZ111111" Collect "cisco_cpu" "ifmib_if_octets32" "ifmib_if_octets64" "ifmib_if_packets32" "ifmib_if_packets64" "ifmib_if_errors32" "ifmib_if_errors64" "uptime" "cisco_memory_used" "std_traffic" "allocated_disk" "HW_SW_cpu_Used0" "HW_SW_cpu_Used1" Interval 10 Timeout 10 Retries 1
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Actual behavior
Found out that the issues are on the csv file update frequency delay.
Timestamps in the csv have been updated in 10-15 secs interval. But the issue is the csv file is being updated around 3-4 mins interval. Not sure why.
Does anyone know why this is happening or how to reduce the csv file update frequency? Any comments or advice will be highly appreciated.
Steps to reproduce