[collectd] How to retrieve string data as a return value while using SNMP Plugin?

BYEONG-GI KIM bgkim at bluedigm.com
Tue Apr 5 11:25:32 CEST 2016


I'm testing Collectd SNMP Plugin now, and I noticed that the Collectd's
types.db defines number values only. Is there any way to get some string
values as a return value? For example, there are some string values as

# snmpwalk -v2c -c redhat localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain
3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2014 x86_64
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (101376) 0:16:53.76
SNMPv2-MIB::sysContact.0 = STRING: UNIX Admin <admin at example.com>
SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
SNMPv2-MIB::sysLocation.0 = STRING: Datacenter, Row 4, Rack 3
[output truncated]

If I want to get the value related to SNMPv2-MIB::sysLocation.0 mib, how
collectd.conf should be set? Thanks in advance!

Best regards

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

More information about the collectd mailing list