Hello,
Thank you for your message.
By default, in PRTG you have a lookup file which already includes the information you shared, the lookup is called prtg.standardlookups.ups-mib.upsbattery.upsbatterystatus.
To use it, go to the settings of the corresponding channel (in the sensor you created), and then make sure that the option Enable alerting based on lookups is selected to be able to choose the lookup in the list.
Regarding the sensor state, it is defined in the lookup according to the value received from your device. Here is the content of the lookup:
<?xml version="1.0" encoding="UTF-8"?>
<ValueLookup id="prtg.standardlookups.ups-mib.upsbattery.upsbatterystatus" desiredValue="2" undefinedState="1">
<Lookups>
<SingleInt state="Ok" value="1">
Unknown
</SingleInt>
<SingleInt state="Ok" value="2">
Battery Normal
</SingleInt>
<SingleInt state="Warning" value="3">
Battery Low
</SingleInt>
<SingleInt state="Error" value="4">
Battery Depleted
</SingleInt>
</Lookups>
</ValueLookup>
Then, to send notifications in case the sensor goes into Warning or Error state, you need to add notification triggers in the corresponding tab, like:
When sensor state is Down for at least 60 seconds, perform {your template}
When sensor state is Down for at least 300 seconds, perform {your template} and repeat every 0 minutes
When sensor state is no longer Down, perform {your template}
If you have questions, let us know.
Regards.
Add comment