Strange output after SNMP walk

snmp

#1

Hi there,

I am writing an check_mk plugin that runs a snmp-walk but the output seems to be a little bugi.

console runs returns this:

snmpbulkwalk -Cr10 -v2c -c <community> -m '' -M '' -Cc -OQ -OU -On -Ot 10.9.15.10 .1.3.6.1.4.1.388.50.1.4.1.2.1.1
.1.3.6.1.4.1.388.50.1.4.1.2.1.1.<ip> = "FC 0A 81 C0 31 78 "

but check_mk returns this:

u'\\x00PV\\x94\\xd9\\xd1'

how can is fix that?


#2

Without checking I’d say you enabled Unicode output, probably by specifying -OU.


#3

that’s true. The first output is correct. It is a MAC-adress, but it seems check_mk tyres to "interpret " the Hex-string.


(Philipp Näther) #4

Your check plugin would be interesting