Been working on getting this configured and my head around this alert. I've got it working to alert me of going on battery now, and if the batteries are marked as bad.
This is specifically tested with an APC Smart-UPS SRT 6000, SKU: SRT6KXLT.
I have three checks:
1: UPS on battery Test Condition: status_value eq 3 Association: Status Type in powernet-upsbasicoutput-state Device in $device
2: UPS battery needs replacing Test Condition: status_value ne 1 Association: Status Type in powernet-upsbatteryreplace-state Device in $device
3: UPS battery status Test Condition: status_value ne 2 Association: Status Type in powernet-upsbattery-state Device in $device
I hope this will be helpful as I didn't see much come up in my searching before.