[collectd] SNMP plugin possible syntax error

Jerry Lombardo jl4472 at columbia.edu
Fri Jul 22 17:26:24 CEST 2016


None of the CPU metrics are working,  the rest including load are working.
Anyone have advice on how to troubleshoot this?   I'm able walk the
metric,  I'm sure it's a syntax error somewhere.




<Plugin snmp>

        <Data "presentPower">
            Type "voltage"
            Table false
            Instance ""
           Values "SNMPv2-SMI::enterprises.2021.255.15.2"
       </Data>
        <Data "linux_load">
                Type "load"
                Table false
                Values "UCD-SNMP-MIB::laLoadInt.1"
"UCD-SNMP-MIB::laLoadInt.2" "UCD-SNMP-MIB::laLoadInt.3"
                Scale 0.01
        </Data>
        <Data "linux_cpu_user_raw">
                Type "cpu"
                Table false
                Instance "user_raw"
                Values "UCD-SNMP-MIB::ssCpuRawUser.0"
        </Data>
        <Data "linux_cpu_system_raw">
                Type "cpu"
                Table false
                Instance "system_raw"
                Values "UCD-SNMP-MIB::ssCpuRawSystem.0"
        </Data>
        <Data "linux_cpu_idle_raw">
                Type "cpu"
                Table false
                Instance "idle_raw"
                Values "UCD-SNMP-MIB::ssCpuRawIdle.0"
        </Data>
        <Data "linux_cpu_wait_raw">
                Type "cpu"
                Table false
                Instance "wait_raw"
                Values "UCD-SNMP-MIB::ssCpuRawWait.0"
        </Data>
        <Data "linux_cpu_nice_raw">
                Type "cpu"
                Table false
                Instance "nice_raw"
                Values "UCD-SNMP-MIB::ssCpuRawNice.0"
        </Data>
        <Data "linux_cpu_kernel_raw">
                Type "cpu"
                Table false
                Instance "kernel_raw"
                Values "UCD-SNMP-MIB::ssCpuRawKernel.0"
        </Data>
        <Data "linux_mem_total">
                Type "memory"
                Table false
                Instance "total_real"
                Values "UCD-SNMP-MIB::memTotalReal.0"
        </Data>
        <Data "linux_mem_avail">
                Type "memory"
                Table false
                Instance "avail_real"
                Values "UCD-SNMP-MIB::memAvailReal.0"
        </Data>


    <Data "std_traffic">
                Type "if_octets"
                Table true
                Instance "IF-MIB::ifDescr"
                Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
       </Data>

       <Data "ifmib_if_packets64">
                Type "if_packets"
                Table true
                Instance "IF-MIB::ifName"
                Values "IF-MIB::ifHCInUcastPkts" "IF-MIB::ifHCOutUcastPkts"
       </Data>




###HOSTS###


<Host "dddd">
  Address "1.1.1.1"
  Version 2
  Community "string"
  Collect "std_traffic" "ifmib_if_packets64"  "linux_cpu_user_raw"
"linux_cpu_idle_raw" "linux_cpu_system_raw" "linux_cpu_wait_raw"
"linux_cpu_nice_raw" "linux_cpu_kernel_raw" "linux_mem_total"
"linux_mem_avail" "linux_load"
</Host>

<Host "eeee">
  Address "1.1.1.1"
  Version 2
  Community "string"
  Collect "std_traffic" "ifmib_if_packets64"  "linux_cpu_user_raw"
"linux_cpu_idle_raw" "linux_cpu_system_raw" "linux_cpu_wait_raw"
"linux_cpu_nice_raw" "linux_cpu_kernel_raw" "linux_mem_total"
"linux_mem_avail" "linux_load"
</Host>
<Host "eeee">
  Address "1.1.1.1"
  Version 2
  Community "string"
  Collect "std_traffic" "ifmib_if_packets64"  "linux_cpu_user_raw"
"linux_cpu_idle_raw" "linux_cpu_system_raw" "linux_cpu_wait_raw"
"linux_cpu_nice_raw" "linux_cpu_kernel_raw" "linux_mem_total"
"linux_mem_avail" "linux_load"
</Host>
<Host "eeee">
  Address "1.1.1.1"
  Version 2
  Community "string"
  Collect "std_traffic" "ifmib_if_packets64"  "linux_cpu_user_raw"
"linux_cpu_idle_raw" "linux_cpu_system_raw" "linux_cpu_wait_raw"
"linux_cpu_nice_raw" "linux_cpu_kernel_raw" "linux_mem_total"
"linux_mem_avail" "linux_load"
</Host>




More information about the collectd mailing list