This article applies as of PRTG 20
I have created a custom lookup with the range type. When I try to load the new lookup file, I get an error message ('''is not a valid integer value").
Working with range-based lookups
This is a standard range based lookup that is included in PRTG by default for reference. The file is called prtg.standardlookups.snmpprinter.cartridgelevel.ovl:
<?xml version="1.0" encoding="UTF-8"?> <ValueLookup id="prtg.standardlookups.snmpprinter.cartridgelevel" desiredValue="100" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd"> <Lookups> <Range state="Ok" from="16" to="100">Ok</Range> <Range state="Warning" from="6" to="15">Low</Range> <Range state="Error" from="0" to="5">Critical</Range> <Range state="None" from="-2" to="-1">Unknown</Range> <Range state="Ok" from="-3" to="-3">Not Empty</Range> </Lookups> </ValueLookup>
Note: You cannot mix different lookup types, so when working with a range-based lookup file, all entries must be range based. You can easily enter a single number by creating a range that goes from and to the same value, for example:
<Range state="Warning" from="6" to="6">Number Six</Range>
More
Further information regarding lookups:
- PRTG Manual: Define Lookups
- Video Tutorial: Video: How to Configure Lookups in PRTG Network Monitor
- Monitor and "lookup" an SNMP string value
Other SNMP-related topics:
- Can't find a sensor for my device in PRTG but I believe it supports SNMP. How to proceed?
- What can I monitor with the SNMP Custom Table sensor?
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.