I want to create custom SNMP sensor for Cisco CUBE device to monitor dial-peer state. For example, OID 1.3.6.1.2.1.2.2.1.7.20 for dial-peer with IfIndex 20. Returning valuse are 1 (state Ok) or 2 (state Out-of-service).
I create file for custom lookup:
<?xml version="1.0" encoding="UTF-8"?> <ValueLookup id="prtg.custom.ciscodialpeer.state" desiredValue="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd"> <Lookups> <SingleInt state="Ok" Value="1"> 1 </SingleInt> <SingleInt state="Error" Value="0"> 2 </SingleInt> </Lookups> </ValueLookup>
When dial-peer is Ok, sensor is Ok too. Value is 1, pie chart is in green zone. But when dial-peer is down, I recieve message "Error by lookup value '2' in Value". What' wrong?
Add comment