Skip to content
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

Strange behavior in SNMP plugin #3411

Closed
lfdominguez opened this issue Oct 31, 2017 · 6 comments
Closed

Strange behavior in SNMP plugin #3411

lfdominguez opened this issue Oct 31, 2017 · 6 comments

Comments

@lfdominguez
Copy link

Hello, i'm using telegraf to obtain information from my internet router with SNMP plugin, but i see this strange behavior ( I have a 2mbps/2mbps of internet, so the max has to be of 256 KBytes/s, but i see in this 400 Kbytes/s)

image

My Configuration is

[[inputs.snmp]]
agents = [ "190.6.71.161" ]
version = 2
community = "public"
name = "router_internet"
interval = "10s"

[[inputs.snmp.field]]
name = "rx"
oid = "IF-MIB::ifInOctets.1286"

[[inputs.snmp.field]]
name = "tx"
oid = "IF-MIB::ifOutOctets.1286"

[[inputs.snmp.field]]
name = "erx"
oid = "IF-MIB::ifInErrors.1286"

[[inputs.snmp.field]]
name = "etx"
oid = "IF-MIB::ifOutErrors.1286"

@danielnelson
Copy link
Contributor

I think the value in non_negative_derivative is probably wrong, try setting it to the collection internal (probably 10s).

@lfdominguez
Copy link
Author

uff if i change that i get the same graph but now with Mbps
image

@danielnelson
Copy link
Contributor

I guess you should go back to 1s, I think this is right because you want bytes/sec.

I think this could just be caused by variations in how long it takes to collect the data, since we can't always poll exactly 10s apart. Does it appear better when grouped by a larger interval?

@danielnelson
Copy link
Contributor

I'm happy to continue trying to help figure this out here, but you might get better results at the InfluxData Community site.

@lfdominguez
Copy link
Author

umm yeap, seems that, because the router is slow to respond to SNMP requests... but i solved that (before that I used InfluxDB with Telegraf) with a ruby script that catch the "uptime" of the router on response and make the math with this, not with the time configurated. Thanks.

@lfdominguez
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants