-
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
SNmp Plugin and InfluxDb #2537
Comments
In InfluxDB each series can only have one value per field. If you want more than one reading at an exact time you will probably want one of the tags to be different, a reading can only have one value for a field at a time from a given host. I think you may be able to do this by modifying your snmp input configuration, can you add the relevant config? |
Also take a look at the |
I am actually trying to get the information about the cpu load. the return isn't that wrong because there are 4 cpus in the device. Here is my config from telegraf: [[inputs.snmp]] .# MIB id lookup http://www.oidview.com/mibs/0/HOST-RESOURCES-MIB.html [[outputs.influxdb]] |
While I'm not familiar with the device, or the data it outputs, I would have expected the |
That is exactly what I am using for a few different devices. For now I have specifically applied the relevant PR and locally built telegraf with that change to support this. My telegraf input configuration for this:
BTW:
|
I tried to collect the data with snmpwalk and it worked pretty fine. HOST-RESOURCES-MIB::hrProcessorFrwID.768 = OID: SNMPv2-SMI::zeroDotZero Telegraf output: But if I do it with telegraf it doesn't work. Telegraf seems to make some wired things with the processor id. |
The
The PR noted by @phemmer is what is needed in this case if you want to use the auto-table capability in the SNMP plugin (IE: I am using the functionality in #2366 for several standard and vendor-specific tables for similar reasons. Alternately you could build a specific configuration that does not use auto-table. Using your example above this might be something like:
Be aware the that actual index is actually a generic device index for the system, and could be subject to change. It is not very likely but it is possible. Also note that this index and the number of entries may vary from platform to platform, requiring different configurations for each. This obviously would not scale well but may suit for you for the interim (or apply the PR manually) |
Hi
I am trying to collect data via snmp from one Firewall and store this data in my InfluxDb. Now i am facing the problem, that i would like to insert multiple values from an snmp request with the same timestamp into the db. From my point of knowledge it is not possible to do that.
Now my question is, is it possible to remove the timestamp from the snmp imput or get different timestamps for each value?
Values from InfluxDb:
1489649741000000000 10.0.0.1 localhost.localdomain .0.0 59
1489649751000000000 10.0.0.1 localhost.localdomain .0.0 61
1489649761000000000 10.0.0.1 localhost.localdomain .0.0 49
Value output from telegraf:
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorLoad=54i,hrProcessorFrwID=".0.0" 1489649741000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorFrwID=".0.0",hrProcessorLoad=50i 1489649741000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorFrwID=".0.0",hrProcessorLoad=51i 1489649741000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorLoad=59i,hrProcessorFrwID=".0.0" 1489649741000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorLoad=54i,hrProcessorFrwID=".0.0" 1489649751000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorFrwID=".0.0",hrProcessorLoad=50i 1489649751000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorFrwID=".0.0",hrProcessorLoad=50i 1489649751000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorFrwID=".0.0",hrProcessorLoad=61i 1489649751000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorFrwID=".0.0",hrProcessorLoad=61i 1489649761000000000
Prozessor,host=localhost.localdomain,agent_host=10.0.0.1 hrProcessorFrwID=".0.0",hrProcessorLoad=53i 1489649761000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorFrwID=".0.0",hrProcessorLoad=50i 1489649761000000000
Prozessor,agent_host=10.0.0.1,host=localhost.localdomain hrProcessorFrwID=".0.0",hrProcessorLoad=49i 1489649761000000000
The text was updated successfully, but these errors were encountered: