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.
Article Comments
HI Timo, thank you for the reply/assist.
Yes the file is where it should be and i have run the load lookup tool from the back end.
Look up file is here for you . Its only small so should be ok to post.
<?xml version="1.0" encoding="UTF-8"?> <ValueLookup id="oid.custom.ricoh.status" desiredValue="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd"> <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>
Thank you all !!!
Feb, 2022 - Permalink
Hello,
Thanks for sending the lookup.The issue is that there's no "Critical" state. You can only use "Warning", "Ok", "Error" or "None" as state. Therefore please try to use the following instead (as last line):
<SingleInt state="Error" value="5">Warmup</SingleInt>
Afterwards you should be to select and use the lookup file.
Feb, 2022 - Permalink
Hello,
The lookup file seems fine so far. Did you store it at "C:\Program Files (x86)\PRTG Network Monitor\lookups\custom" and run "Load lookup and file list" at "Setup > System Administration > Administrative Tools" before selecting the lookup file in the channel settings?
If the issue persists, feel free to send us the used lookup file to support@paessler.com, so we can take a closer look.
Feb, 2022 - Permalink