I was trying to use Enum Processor Plugin with no luck.
So maybe I need to use other processor?..
This is my config:
[[inputs.snmp.table]]
name = "FOOBAR"
inherit_tags = [ "hostname" ]
[[inputs.snmp.table.field]]
name = "tempSensorId"
oid = ".iso.org.dod.internet.private.enterprises.232.6.2.6.8.1.2.0"
is_tag = true
[[inputs.snmp.table.field]]
name = "tempSensorLoc"
oid = ".iso.org.dod.internet.private.enterprises.232.6.2.6.8.1.3.0"
is_tag = true
…which returns such data:
FOOBAR,hostname=LOL1,tempSensorId=36,tempSensorLoc=5 …
FOOBAR,hostname=LOL1,tempSensorId=42,tempSensorLoc=3 …
FOOBAR,hostname=LOL1,tempSensorId=49,tempSensorLoc=12 …
but I want to convert the value of tempSensorLoc tag to a text as defined in CPQHLTH-MIB.mib:
cpqHeTemperatureLocale OBJECT-TYPE
SYNTAX INTEGER {
system(3),
ioBoard(5),
cpu(6),
chassis(12),
…so the final output written into influxdb would be:
FOOBAR,hostname=LOL1,tempSensorId=36,tempSensorLoc=ioBoard …
FOOBAR,hostname=LOL1,tempSensorId=42,tempSensorLoc=system …
FOOBAR,hostname=LOL1,tempSensorId=49,tempSensorLoc=chassis …