UPS alarm monitoring

Hello.
I have connected an APC UPS through serial port.
Does anybody know how to proceed for UPS on-battery monitoring?
I thought there would be a On-UP / On-DOWN windows for scripting as it exists in Netwotch tool.
Is there any other way to take an action over a power line failure than Checking UPS status through a script every minute?

Thank You very much

There are other ways.
UPS - http://tandem.ck.ua/ups_mt-eng.php
UPS-monitor - http://tandem.ck.ua/ups_mtm-eng.php
Examples of scripts - http://tandem.ck.ua/prg/scripts.txt