Hi all, i am putting together a custom oid sensor and lookup for some printers here. Can someone enlighten me on why the value is not being recognised properly by my lookup.
My OID is and test is this>
11/02/2022 15:35:20 (20 ms) : SNMP v2c 11/02/2022 15:35:20 (23 ms) : Custom OID 1.3.6.1.2.1.25.3.2.1.5.1 11/02/2022 15:35:20 (36 ms) : SNMP Datatype: ASN_INTEGER 11/02/2022 15:35:20 (40 ms) : ------- 11/02/2022 15:35:20 (45 ms) : Value: 2 11/02/2022 15:35:20 (48 ms) : Done
So i am getting the return value of "2"
My custom look up is this>
<Lookups> <SingleInt state="Warning" value="1">Other</SingleInt> <SingleInt state="Warning" value="2">Unknown</SingleInt> <SingleInt state="OK" value="3">Idle</SingleInt> <SingleInt state="OK" value="4">Printing</SingleInt> <SingleInt state="Critical" value="5">Warmup</SingleInt> </Lookups> </ValueLookup>
yet when i run this i am getting>
Channel | ID | Last Value | Minimum | Maximum | Settings | |
Downtime | -4 | Value | 0 | 2 (configured lookup oid.custom.ricoh.status is empty or not available) | 2 (configured lookup oid.custom.ricoh.status is empty or not available) | 2 (configured lookup oid.custom.ricoh.status is empty or not available) |
So its returning the value of "2" and i have defined this but i am getting the above error.
I admit this is my first real attempt at this so i am probably missing somthing obvious :-)
Thanks all.
Add comment