[collectd] snmp plugin problem

James Thorpe bthorpe76 at gmail.com
Thu Aug 28 18:34:50 CEST 2008


I am getting the following warning/error:
snmp plugin: I don't know the ASN type `128'

I am not sure if this is causing any issues. I am not able to see interface
stats even though I have it enabled in the conf. This is collectd-4.3.2
running on CentOS 5. Any help will be appreciated greatly.

snippet of /var/log/messages

snmpd[8640]: Received SNMP packet(s) from UDP: [127.0.0.1]:33011
collectd[19455]: snmp plugin: I don't know the ASN type `128'
last message repeated 4 times

/etc/collectd.conf file looks like this:

Interval 300

LoadPlugin syslog
LoadPlugin csv
LoadPlugin snmp

<Plugin syslog>
        LogLevel warn
</Plugin>

<Plugin csv>
        DataDir "/var/lib/collectd/csv"
</Plugin>

<Plugin snmp>
    <Data "ifmib_if_octets32">
        Type "if_octets"
        Table true
        Instance "IF-MIB::ifDescr"
        Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
   </Data>
   <Data "ifmib_if_packets32">
        Type "if_packets"
        Table true
        Instance "IF-MIB::ifDescr"
        Values "IF-MIB::ifInUcastPkts" "IF-MIB::ifOutUcastPkts"
    </Data>
    <Data "ifmib_if_errors32">
        Type "if_errors"
        Table true
        Instance "IF-MIB::ifDescr"
        Values "IF-MIB::ifInErrors" "IF-MIB::ifOutErrors"
   </Data>
    <Data "ifmib_if_running">
        Type "if_running"
        Table true
        Instance "IF-MIB::ifDescr"
        Values "IF-MIB::ifSpeed" "IF-MIB::ifOperStatus"
    </Data>
    <Data "loadavg1">
        Type "cpu"
        Table false
        Instance "loadavg"
        Values "UCD-SNMP-MIB::laLoadInt.1"
    </Data>
    <Data "nprocs">
        Type "procq"
        Table false
        Instance "system"
        Values "HOST-RESOURCES-MIB::hrSystemProcesses.0"
    </Data>
    <Data "maswap">
        Type "mem"
        Table false
        Instance "availswap"
        Values "UCD-SNMP-MIB::memAvailSwap.0"
    </Data>
    <Data "mareal">
        Type "mem"
        Table false
        Instance "availreal"
        Values "UCD-SNMP-MIB::memAvailReal.0"
    </Data>

    <Host "this">
        Address "127.0.0.1"
        Version 2
        Community "public"
        Collect "loadavg1" "ifmib_if_running"
        Collect "ifmib_if_octets32" "ifmib_if_packets32" "ifmib_if_errors32"
        Collect "maswap" "mareal"
        Collect "nprocs"
    </Host>

</Plugin>


types.db looks like this:

apache_bytes            count:COUNTER:0:134217728
apache_connections      count:GAUGE:0:65535
apache_requests         count:COUNTER:0:134217728
apache_scoreboard       count:GAUGE:0:65535
bitrate                 value:GAUGE:0:4294967295
charge                  value:GAUGE:0:U
connections             value:COUNTER:0:U
counter                 value:COUNTER:U:U
cpufreq                 value:GAUGE:0:U
cpu                     value:COUNTER:0:4294967295
current                 value:GAUGE:U:U
delay                   seconds:GAUGE:-1000000:1000000
df                      used:GAUGE:0:1125899906842623,
free:GAUGE:0:1125899906842623
disk_merged             read:COUNTER:0:4294967295,
write:COUNTER:0:4294967295
disk_octets             read:COUNTER:0:17179869183,
write:COUNTER:0:17179869183
disk_ops                read:COUNTER:0:4294967295,
write:COUNTER:0:4294967295
disk_time               read:COUNTER:0:1000000, write:COUNTER:0:1000000
dns_octets              queries:COUNTER:0:125000000,
responses:COUNTER:0:125000000
dns_opcode              value:COUNTER:0:65535
dns_qtype               value:COUNTER:0:65535
dns_rcode               value:COUNTER:0:65535
email_check             value:GAUGE:0:U
email_count             value:GAUGE:0:U
email_size              value:GAUGE:0:U
entropy                 entropy:GAUGE:0:4294967295
fanspeed                value:GAUGE:0:U
frequency               frequency:GAUGE:0:U
frequency_offset        ppm:GAUGE:-1000000:1000000
gauge                   value:GAUGE:U:U
humidity                value:GAUGE:0:100
if_collisions           value:COUNTER:0:4294967295
if_dropped              rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
if_errors               rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
if_multicast            value:COUNTER:0:4294967295
if_octets               rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
if_packets              rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
if_rx_errors            value:COUNTER:0:4294967295
if_tx_errors            value:COUNTER:0:4294967295
ipt_bytes               value:COUNTER:0:134217728
ipt_packets             value:COUNTER:0:134217728
irq                     value:COUNTER:U:65535
load                    shortterm:GAUGE:0:100, midterm:GAUGE:0:100,
longterm:GAUGE:0:100
memcached_command       value:COUNTER:0:U
memcached_connections   value:GAUGE:0:U
memcached_items         value:GAUGE:0:U
memcached_octets        rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
memcached_ops           value:COUNTER:0:134217728
memory                  value:GAUGE:0:281474976710656
multimeter              value:GAUGE:U:U
mysql_commands          value:COUNTER:0:U
mysql_handler           value:COUNTER:0:U
mysql_octets            rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
mysql_qcache            hits:COUNTER:0:U, inserts:COUNTER:0:U,
not_cached:COUNTER:0:U, lowmem_prunes:COUNTER:0:U,
queries_in_cache:GAUGE:0:U
mysql_threads           running:GAUGE:0:U, connected:GAUGE:0:U,
cached:GAUGE:0:U, created:COUNTER:0:U
nfs_procedure           value:COUNTER:0:4294967295
nginx_connections       value:GAUGE:0:U
nginx_requests          value:COUNTER:0:134217728
percent                 percent:GAUGE:0:100.1
ping                    ping:GAUGE:0:65535
power                   value:GAUGE:0:U
ps_count                processes:GAUGE:0:1000000, threads:GAUGE:0:1000000
ps_cputime              user:COUNTER:0:16000000, syst:COUNTER:0:16000000
ps_pagefaults           minflt:COUNTER:0:9223372036854775807,
majflt:COUNTER:0:9223372036854775807
ps_rss                  value:GAUGE:0:9223372036854775807
ps_state                value:GAUGE:0:65535
serial_octets           rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
signal_noise            value:GAUGE:U:0
signal_power            value:GAUGE:U:0
signal_quality          value:GAUGE:0:U
spam_score              value:GAUGE:U:U
swap                    value:GAUGE:0:1099511627776
tcp_connections         value:GAUGE:0:4294967295
temperature             value:GAUGE:-273.15:U
time_dispersion         seconds:GAUGE:-1000000:1000000
timeleft                timeleft:GAUGE:0:3600
time_offset             seconds:GAUGE:-1000000:1000000
users                   users:GAUGE:0:65535
virt_cpu_total          ns:COUNTER:0:256000000000
virt_vcpu               ns:COUNTER:0:1000000000
voltage_threshold       value:GAUGE:U:U, threshold:GAUGE:U:U
voltage                 value:GAUGE:U:U
vs_memory               value:GAUGE:0:9223372036854775807
vs_processes            value:GAUGE:0:65535
vs_threads              value:GAUGE:0:65535
if_running              speed:COUNTER:U:U, running:COUNTER:U:U
mem                     value:COUNTER:U:U
procq                   value:COUNTER:U:U
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20080828/676334a5/attachment.htm 


More information about the collectd mailing list