I’m trying to convert my UPS status into a readable format.
This is the item:
String Ups_Status “UPS status [MAP(ups.map):%s]” (UPS) {networkupstools=“ups1:ups.status”}
This is my ups.map:
OL=OnLine "OL CHRG"="On Line, Charging" "OB DISCHRG"="On Battery, Discharging"
And finally the errors (depending on the actual status):
Could not find a mapping for ‘OL CHRG’ in the file ‘ups.map’
Could not find a mapping for ‘OB DISCHRG’ in the file ‘ups.map’
What I’m doing wrong?