I have created a custom SNMP lookup file as outlined below.

<?xml version="1.0" encoding="UTF-8"?> <ValueLookup id="APC-UPS_battery_status" desiredValue="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd"> <Lookups> <SingleInt state="Warning" value="1"> Unknown </SingleInt> <SingleInt state="Ok" value="2"> BatteryNormal </SingleInt> <SingleInt state="Error" value="3"> BatteryLow </SingleInt> </Lookups> </ValueLookup> The file is loaded correctly, but i still receive the following error: "The lookup "apc-ups_battery_status" does not contain a definition for "2"" This means that my OID (.1.3.6.1.4.1.318.1.1.1.2.1.1.0) fort he ups is being read, but the value can not be fount in the lookup. What am i doing wrong?


Article Comments

Hello eagle00789.
Your lookup file looks correct.

Please confirm which one of those sensor's you're using:

I ask that because from a quick research it looks like the 1.3.6.1.4.1.318.1.1.1.2.1.1.0 OID returns an integer value and not a string.

Please be aware that the SNMP Custom Lookup BETA sensor monitors a string value returned by a specific OID, while the SNMP Custom sensor monitors a numerical value returned by a specific OID.

If that's the case, use the SNMP Custom sensor instead and then use your lookup.


Jul, 2015 - Permalink

I am indeed using the SNMP Cusotm Lookup BETA Since i am now using SNMP Custom, as proposed by you, it is working. The problem was that i was looking for the lookup in the sensor instead of the channel. That's why i ignored the SNMP Custom sensor. But everything is now working like a charm.


Jul, 2015 - Permalink

That's great to hear.
Thank you for your feedback.

Best Regards,


Jul, 2015 - Permalink