Monitoring a UPS