Hi,
I get OID with basic ups status represented by 64 flags in 64bit string:
5/15/2019 1:17:17 PM (68 ms) : 1.3.6.1.4.1.318.1.1.1.11.1.1.0 = "0001010000000000001000000000000000000000000000000000000000000000" [ASN_OCTET_STR]
I want to monitor first five flags from left which means:
Flag 1: Abnormal Condition Present
Flag 2: On Battery
Flag 3: Low Battery
Flag 4: On Line
Flag 5: Replace Battery
I created a SNMP Custom String Lookup Sensor and define custom lookup:
<?xml version="1.0" encoding="UTF-8"?>
<ValueLookup id="ups.bitmask" desiredValue="1" undefinedState="Warning" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd">
<Lookups>
<BitField state="Ok" value="1152921504606846976">On Line</BitField>
<BitField state="Error" value="2305843009213693952">Low Battery</BitField>
<BitField state="Error" value="4611686018427387904">On Battery</BitField>
<BitField state="Error" value="9223372036854775808">Abnormal Condition Present</BitField>
<BitField state="Error" value="576460752303423488">Replace Battery</BitField>
</Lookups>
</ValueLookup>
But when run the sensor I get error message:
The lookup "ups.bitmask" does not contain a definition for "0001010000000000001000000000000000000000000000000000000000000000"
So, I must define all of the 64 flags in lookup or there is other problem?
Add comment