I created a sensor using an imported OID library for a TrippLite UPS. One on the sensors is "ups alarm descr". When there is an alarm present, this channel exists and the data is a string with the alarm status (i.e. "Battery Age threshold exceeded"). But when there is no alarm present, this sensor shows an error: "No Such Name (SNMP error #2)".
In both cases above, the sensor is always in red status.
1- How can I manage the nonexistence of this channel when there is no alarm? and 2- How to keep it on "green" state when no alarm is present?