-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[inputs/nstat] error on snmp6 when ipv6 is disabled #5403
Comments
As a workaround you can add this option:
|
@danielnelson Right, that's much better solution. Just curious,
It gives pretty much the same output, except all metrics are merged into single category (no Is a PR witch such change acceptable for |
It is faster to read 3 files than to exec a binary, and then of course using it would add a dependency on the nstat binary. If you strace nstat you can see it opens these 3 files as well. On naming, we try to keep everything backwards compatible so as to not break any dashboard or alerts. |
Sure, makes sense. Thanks for explanation! |
Relevant telegraf.conf:
System info:
Debian 4.9.110-3+deb9u4 (2018-08-21), Telegraf 1.9.4
Steps to reproduce:
ipv6.disable=1
Expected behavior:
Silently ignore missing
/proc/net/snmp6
.Workaround
redirectsnmp6
tosnmp
and then ignore it.[[inputs.nstat]]
proc_net_snmp6 = "/proc/net/snmp"
namedrop = "snmp6"
Not a good idea. Incorrectly parsed
snmp6
fields with enormous cardinality:Actual behavior:
The text was updated successfully, but these errors were encountered: