Hi!
I am getting this warning message:
" W! Overlapping settings in multiple agent tables are not supported: may cause undefined behavior"
I can’t understant what it refers to, and how to solve it.
I only find the text in source code, and no any other reference.
I have this header for each snmp table I am querying.
[[inputs.snmp]]
agents = ["udp://nnn.nnn.nnn.nnn:161"]
timeout = "15s"
version = 2
community = "xxxxxxxx"
retries = 3
max_repetitions = 10
interval = "24h"
agent_host_tag = "source"
tagexclude = ["host"]
[[inputs.snmp.field]]
# "An administratively-assigned name for this managed\n node. By convention, this is the node\'s fully-qualified\n domain name. If the name is unknown, the value is\n the zero-length string."
oid = ".1.3.6.1.2.1.1.5.0"
name = "SNMPv2-MIB::sysName"
is_tag = true
[[inputs.snmp.table]]
# "This table lists the description of interfaces."
#oid = ".1.3.6.1.4.1.2011.5.25.157.1.19.1"
name = "HUAWEI-PORT-MIB::hwPortDescriptionTable"
inherit_tags = ["SNMPv2-MIB::sysName"]
index_as_tag = true
and then the [[inputs.snmp.table.field]] for the table
Is the problem the use of the sysName in each different measure?
Is there a way to set a global “inherit_tag”?
Thanks!
Regards;
This warning will appear if you have multiple [agent]
settings across all your config files. As there is no output in your config I expect you have more configuration or configuration files that may have more than one of those settings.
Hi @jpowers!
I thought that was the reason, but I have just one [agent] entry in all my .conf files (I have more than 180 ).
I run a “find” to check it:
paas@ARBBCWP_GDE_DSS01:~/telegraf> find . -type f -name "*conf" -exec grep "\[agent\]" {} \;
[agent]
paas@ARBBCWP_GDE_DSS01:~/telegraf>
and verified that there is only one.
2024-08-01T10:28:48Z W! Overlapping settings in multiple agent tables are not supported: may cause undefined behavior
2024-08-01T10:28:48Z I! Starting Telegraf 1.31.2 brought to you by InfluxData the makers of InfluxDB
2024-08-01T10:28:48Z I! Available plugins: 234 inputs, 9 aggregators, 32 processors, 26 parsers, 60 outputs, 6 secret-stores
2024-08-01T10:28:48Z I! Loaded inputs: ping snmp (184x)
2024-08-01T10:28:48Z I! Loaded aggregators: derivative
2024-08-01T10:28:48Z I! Loaded processors:
2024-08-01T10:28:48Z I! Loaded secretstores:
2024-08-01T10:28:48Z I! Loaded outputs: influxdb sql
2024-08-01T10:28:48Z I! Tags enabled: host=ARBBCWP_GDE_DSS01
2024-08-01T10:28:48Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"ARBBCWP_GDE_DSS01", Flush Interval:5m0s
2024-08-01T14:51:28Z I! [agent] Hang on, flushing any cached metrics before shutdown
2024-08-01T14:51:29Z I! [agent] Stopping running outputs
If this warning is only regarding [agent] section then I shall ignore it and leave it there.
Thank you very much!
Hmm that is a bit concerning then. In your other thread, you have the following service file:
–config /home/paas/telegraf/telegraf.conf --config-directory /home/paas/telegraf/
That means that your telegraf.conf file is in the config directory that you also read, which means it is read in twice. That is probably why you are seeing this.
You got a point there.
I run it with the --config-directory only and the warning disappear.
Thanks!
Regards!
PS: After solving this warning, some memory and access issues disappear.
1 Like