[collectd] SNMP plugin possible syntax error
Giovanni Torres
giovanni.torres at gmail.com
Sun Jul 24 16:49:24 CEST 2016
Looks ok on the surface and the MIBs do resolve. Does the collectd log
share any info? If not, try temporarily bumping up the loglevel to debug
and see if the logs provide any clues. (You would have had to compiled
with debug enabled.)
If you wanted to dig deeper, you could run a tcpdump on one of the remote
hosts, "eeee" for example, and verify that the host is actually returning
values for the CPU metrics. That way, you can rule out snmp on those hosts
and focus on collectd server side.
Hope that helps.
Giovanni
On Fri, Jul 22, 2016 at 11:30 AM Jerry Lombardo <jl4472 at columbia.edu> wrote:
> 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>
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> https://mailman.verplant.org/listinfo/collectd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20160724/37a5c556/attachment.html>
More information about the collectd
mailing list