Hello everybody,

today i tried to configure collectd to gather statistical informations via SNMP from our Cisco WLAN Controller. I want to have statistics how much users are logged in on every single ap.


My configuration:

<Plugin snmp>
        <Data "users_of_ap">
          Type "counter"
          Table true
          Instance "1.3.6.1.4.1.14179.2.2.1.1.3"
          Values "1.3.6.1.4.1.14179.2.2.2.1.15"
        </Data>
        <Host "internal.dns.name">
          Address "internal.dns.name"
          Version 2
          Community "communitystring"
          Collect "users_of_ap"
          Interval 300
        </Host>
</Plugin>


The instance OID is a string value with the name of the access point. The Values OID is a Counter32 value.

http://www.oidview.com/mibs/14179/AIRESPACE-WIRELESS-MIB.html

Cisco APs connected to given controller are identified in SNMP database by a string of random values preceded by a single 0 like this:

snmpwalk -v 2c -c xxx internal.dns.name 1.3.6.1.4.1.14179.2.2.1.1.3

SNMPv2-SMI::enterprises.14179.2.2.1.1.3.0.28.14.214.199.80 = STRING: "AP213"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.0.30.19.122.57.80 = STRING: "AP205"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.4.254.127.73.182.0 = STRING: "AP211"
SNMPv2-SMI::enterprises.14179.2.2.1.1.3.48.55.166.74.213.112 = STRING: "AP112" SNMPv2-SMI::enterprises.14179.2.2.1.1.3.236.68.118.184.152.224 = STRING: "AP012"



Also you can see that each AP has two OIDs. One ending with ".0" other with ".1". Thats because the APs can work in two modes: a/h or b/g/n.

snmpwalk -v 2c -c xxx internal.dns.name 1.3.6.1.4.1.14179.2.2.2.1.15

SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.28.14.214.199.80.0 = Counter32: 7
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.28.14.214.199.80.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.30.19.122.57.80.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.30.19.122.57.80.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.4.254.127.73.182.0.0 = Counter32: 7
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.4.254.127.73.182.0.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.48.55.166.74.213.112.0 = Counter32: 11 SNMPv2-SMI::enterprises.14179.2.2.2.1.15.48.55.166.74.213.112.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.48.55.166.75.0.224.0 = Counter32: 2
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.48.55.166.75.0.224.1 = Counter32: 0



My Problem is, that collectd tries some different OID i didn't configure:


-- collectd.log --
[2010-12-01 12:04:47] Initialization complete, entering read-loop.
[2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.28.14.214.199.80) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.19.122.57.80) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.74.223.207.112) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.74.224.65.160) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.23.224.240) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.23.225.192) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.23.229.224) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.23.232.160) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.24.50.160) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.24.54.176) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.24.55.64) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.24.56.192) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.0.30.122.24.57.128) [2010-12-01 12:04:48] snmp plugin: I don't know the ASN type "64" (OID: SNMPv2-SMI::enterprises.14179.2.2.1.1.19.4.254.127.73.182.0)
[....]
-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0) [2010-12-01 12:04:58] snmp plugin: I don't know the ASN type "130" (OID: SNMPv2-SMI::enterprises.14179.2.40.1.2.1.0)
----

Did somebody have experience with such a thing or some hints?


Best regards,
Tim


_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to