ups monitoring question

Hello

I have RB1100 v4.11 connected to an APC UPS. I was wondering if there is a way to set up the RB to send a message or log, when the UPS is disconnected from power and is running on battery power. And also, when the battery is low.

Thank you,
sgizaw

Some ideas here:
http://wiki.mikrotik.com/wiki/UPS_scripts

Thanks a lot!!!

Another question. I followed the instructions on this page: http://www.mikrotik.com/testdocs/ros/3.0/ha/ups.php and tried adding my ups to the RB1100, but its showing up as invalid. Is there any version of the APC UPS that can only be used with the mikrotiks, or settings that I might be missing?

Thank you
Sgizaw