On Friday, October 14, 2016 at 10:44:14 PM UTC+3, [email protected] wrote:
> Hi,
> In the old SNMP Plugin I had this:
> ...
> [[inputs.snmp.host]]
> address = "server.domain.local:161"
> community = "community" # default public
> version = 2 # default 2
> collect = ["CargaCPU"]
> [[inputs.snmp.bulk]]
> name = "CargaCPU"
> oid = "hrProcessorLoad"
>
> And then, in InfluxDB I was able to see all CPU that this server have, and I
> was able to identify them thru a tag called "instance".
>
> In the new plugin I'm trying to do the same like this:
> [[inputs.snmp]]
> agents = [ "server.domain.local" ]
> version = 2
> community = "community"
> [[inputs.snmp.field]]
> name = "hostname"
> oid = "RFC1213-MIB::sysName.0"
> is_tag = true
> [[inputs.snmp.table]]
> name = "UsoCPU"
> inherit_tags = [ "hostname" ]
> [[inputs.snmp.table.field]]
> name = "CargaCPU"
> oid = "hrProcessorLoad"
>
> And there I only get one value (instead of # of CPU I have)... I don't know
> if it is the first value, or an average or what... There is no instance tag.
> How I have to do it?
Hi,
inputs.snmp.table.field will only return a single value
If that oid refers to a table, have you tried polling `oid = "hrProcessorLoad"`
with [[inputs.snmp.table]] ?
[[inputs.snmp.table]]
inherit_tags = [ "hostname" ]
oid = "hrProcessorLoad"
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/a4da97f2-9f6d-4c70-ac42-8afb0dd99c3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.