On Friday, February 10, 2017 at 9:50:52 AM UTC-5, David Rawling wrote:
> On Friday, 10 February 2017 00:48:34 UTC+11, [email protected] wrote:
> 
> >   
>  I'm not sure what documentation you're looking at, but your 
> configuration is rather off. For example the errors your'e getting are 
> because there are no configuration options >`[[inputs.snmp.host]]` or 
> `include_instances`.
> >
> >    The following should work:
> >
> >        [[inputs.snmp]]
> >          interval = "30s"
> >       
> >          agents = ["W.X.Y.Z:161"]
> >          version = 2
> >          community = "MyCommunity"
> >       
> >          [[inputs.snmp.field]]
> >            name = "hostname"
> >            oid = "RFC1213-MIB::sysName.0"
> >            is_tag = true
> >       
> >          [[inputs.snmp.table]]
> >            name = "snmp"
> >            inherit_tags = [ "hostname" ]
> >       
> >            [[inputs.snmp.table.field]]
> >              name = "interface"
> >              oid = "IF-MIB::ifName"
> >              is_tag = true
> >       
> >            [[inputs.snmp.table.field]]
> >              name = "bytesIn"
> >              oid = "IF-MIB::ifHCInOctets"
> >       
> >            [[inputs.snmp.table.field]]
> >              name = "bytesOut"
> >              oid = "IF-MIB::ifHCOutOctets"
> 
> I
>  feel like I've gone around in a circle - that's exactly where I started 
> based on the example for 
> the SNMP plugin. I'm left wondering though how to capture only from 
> certain interfaces - so for example where IF-MIB::ifName is one of 
> several values (Gig0, Gig1). As before I'd rather not be capturing 48 ports 
> where 2 
> will do.

Use the tagpass config param.
https://docs.influxdata.com/telegraf/v1.2/administration/configuration/

[[inputs.snmp]]
[inputs.snmp.tagpass]
interface = ["Gig0","Gig1"]

-- 
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/1e4ea108-32f1-4d61-97be-cd84095f4838%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to