I am trying to set a range for a device that returns the values in a negative format here is the lookup so far it keeps returning the error "undefined value returned -520" <?xml version="1.0" encoding="UTF-8"?> <ValueLookup id="oid.custom.peakwifi.MimosaDbm" desiredValue="-400" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd"> <Lookups> <Range state="Ok" from="-400" to="-600">Ok</Range> <Range state="Warning" from="-610" to="-650">Low</Range> <Range state="Error" from="-660" to="-750">Critical</Range> </Lookups> </ValueLookup>


Article Comments

Hi Jameson,

when you are using a range for lookups you will need to define the range from low to high number. In your case you defined it the other way round. So your lookup needs to be defined like this:

<Range state="Ok" from="-600" to="-400">Ok</Range>
<Range state="Warning" from="-650" to="-610">Low</Range>
<Range state="Error" from="-750" to="-660">Critical</Range>

For more insights about using a range in lookups, please take a look here


Kind regards

Felix Wiesneth - Team Tech Support


Oct, 2021 - Permalink