The supported method going forward is to have external tools interact with Prime Infrastructure via the REST API.
See the documentation on your Prime server for "GET Alarms":
https://<your server address>/webacs/api/v1/data/Alarms?_docs
...or you can download a copy of the API Reference here.