On Thursday, February 9, 2017 at 12:52:17 PM UTC-5, Willem D'Haese wrote:
> Hello,
> 
> 
> At the moment the SNMP input of Telegraf works fine. 
> 
> 
> 
> 
> [[inputs.snmp]]
>   interval = "15s"
>   agents = [ "10.10.10.22" ]
>   version = 2
>   community = "public"
>   [[inputs.snmp.field]]
>     name = "hostname"
>     oid = "RFC1213-MIB::sysName.0"
>     is_tag = true
>   [[inputs.snmp.table]]
>     name = "brocade-interface"
>     inherit_tags = [ "hostname" ]
>     oid = "SW-MIB::swFCPortTable"
>     [[inputs.snmp.table.field]]
>       name = "swFCPortBrcdType"
>       oid = "SW-MIB:swFCPortBrcdType"
>       is_tag = true
>     [[inputs.snmp.table.field]]
>       name = "swFCPortName"
>       oid = "SW-MIB:swFCPortName"
>       is_tag = true
> 
> 
> But the above config pulls all data from the SW-MIB::swFCPortTable table.
> 
> 
> 
> How can I limit the scop of the SNMP bulk get to only some oids in the table?
> 
> 
> 
> 
> 
> I would actually only needs swFCPortTxWords and swFCPortRxWords .
> 
> 
> Pulling all the oids for every port on every switch is jsut a waste of 
> resources, so it would be nice to be able to only pull what I need.
> 
> 
> Thanks.
> 
> 
> Willem
> https://outsideit.net

If you take the `oid` parameter off the `[[inputs.snmp.table]]`, the SNMP 
plugin will not automatically configure any fields. It will only use the fields 
you explicitly add.

-- 
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 influxdb+unsubscr...@googlegroups.com.
To post to this group, send email to influxdb@googlegroups.com.
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/398b3a49-43bc-4c26-91c2-c9328acff9a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to