ZABBIX Forums  
Old 10-11-2010, 23:03
Proxx Proxx is offline
Junior Member
Join Date: May 2010
Posts: 6
Question SNMP printer status (octet)

i am trying to use zabbix to monitor the status of a printer.

in the HOST-RESOURCES-MIB it describes

hrPrinterDetectedErrorState {
type binary;
config "false";
"This object represents any error conditions detected
by the printer. The error conditions are encoded as
bits in an octet string, with the following

Condition Bit #

lowPaper 0

noPaper 1
lowToner 2
noToner 3
doorOpen 4
jammed 5
offline 6
serviceRequested 7
inputTrayMissing 8
outputTrayMissing 9
markerSupplyMissing 10
outputNearFull 11
outputFull 12
inputTrayEmpty 13
overduePreventMaint 14

Bits are numbered starting with the most significant
bit of the first byte being bit 0, the least
significant bit of the first byte being bit 7, the
most significant bit of the second byte being bit 8,
and so on. A one bit encodes that the condition was
detected, while a zero bit encodes that the condition
was not detected.

This object is useful for alerting an operator to
specific warning or error conditions that may occur,
especially those requiring human intervention.";
smiid "";

when using snmpwalk it returns a hex value ( 81 04 or 81 00 )

but it is actualy an OCTET value as described in the MIB file. is there a possibility to convert the hex or nativley use the octed value?

i know that the snmpwalk returns a hex if the octet cannot be displayed (illegal character or something)

if thats possible how can i use zabbix to change the octed to the 1 out of 14 conditions ?

it is gettig me a real pain in the ass :|

Last edited by Proxx; 10-11-2010 at 23:08.
Reply With Quote

hrprinter, octet, snmp, zabbix

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 19:25.