[collectd] SNMP Plugin: none sense if trafic values sent to graphite.

Adnane mls at adnane.me
Sun Dec 7 15:45:15 CET 2014


Sorry for the post,  <--should've read the manual :)

when we know that  IF-MIB::ifHCOutOctets.10110 = Counter64: 40143696913 
is the amount od octet sent from the interface since boot or table 
reinitialisation everything else is clear :)

regards

On 12/05/2014 04:00 PM, adnane wrote:
> hello List
>
> *here is the facts*
>
>  date
> 5 16:50:00 CET 2014
> snmpwalk -v 2c -c com cisco_switch IF-MIB::ifHCOutOctets  | grep    
> IF-MIB::ifHCOutOctets.10110
>  IF-MIB::ifHCOutOctets.10110 = Counter64: 40143696913
> collectd sends -->  [332.43175100000002, 1417794600]
> date -d @1417794600
>  5 16:50:00 CET 2014
>
> *and here is my conf*
>
> <Plugin snmp>
>
>   <Data "uptime">
>     Type "uptime"
>     Table false
>     Instance ""
>    scale 0.01
>    Values  "DISMAN-EVENT-MIB::sysUpTimeInstance"
>   </Data>
>
>   <Data "memory_free">
>     Type "memory_free"
>     Table true
>     Instance "CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolName"
>     Values  "CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree"
>   </Data>
>
>   <Data "memory_used">
>     Type "memory_used"
>     Table true
>     Instance "CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolName"
>     Values "CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolUsed"
>   </Data>
>
>   <Data "CPU_usage">
>     Type "percent"
>     Table false
>     Instance "cpmCPUTotalMonIntervalValue"
>     Values "CISCO-PROCESS-MIB::cpmCPUTotalMonIntervalValue.1"
>   </Data>
>
>   <Data "std_traffic">
>     Type "if_octets"
>     Table true
>     Instance "IF-MIB::ifDescr"
>     values "IF-MIB::ifHCInOctets" "IF-MIB::ifHCOutOctets"
>   </Data>
>
>   <Host "switch">
>     Address "ip"
>     Version 2
>     Community "com"
>     Collect "memory_free" "memory_used" "std_traffic" "uptime"
>     Interval 300
>   </Host>
> </Plugin>
>
>  cat ../../share/collectd/types.db | grep if_octets
> if_octets               rx:DERIVE:0:U, tx:DERIVE:0:U
>
> is it a scale ? is it the interval ? is it a cache/buffer ? I was 
> thinking that switchine to cinter64 bits would make collectd send the 
> right values or at least the same as snmpwalk, any help please would 
> be verry apreciated, and sorry for my English, tnx.
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20141207/a128b910/attachment.html>


More information about the collectd mailing list