How to poll OpManager for active alarms using API and API Key

How to poll OpManager for active alarms using API and API Key

OpManager uses an API function to allow third party applications to extract data from it.
https://[Server IP Address]/api/json/alarm/getAlarmList?apiKey=[Server API Key]

Using the link provided by and modified it for the lab server so that The custom can try it out them selves.
https://10.205.13.122/api/json/alarm/getAlarmList?apiKey=86a13e490d0dfccf16a055cf844c0309
The output I got shows me four alarms which I know were active at the time.
{"Alarm":{"Details":[{"source":"pbflabsbbrutb.dn.srp.gov.10000000001","modTime":"1529677355040","category":"Wireless","status":"2","entity":"IF_UTIL_10000010231","modTimeStr":"22 Jun 2018 07:22:35 AM MST","AckBy":"UnAssigned","displayName":"pbflabbrut2b","message":"Interface 'mdl0-mdl0' util threshold violated.Current IN traffic is 391.004 bps(0.13%) and OUT traffic is 159.768 Kbps(54.72%), whereas configured threshold is 30% .","severity":"Trouble"},

{"source":"10.213.1.1.10000000001","modTime":"1529515099991","category":"Wireless","status":"1","entity":"10.213.1.1.10000000001_Poll","modTimeStr":"20 Jun 2018 10:18:19 AM MST","AckBy":"UnAssigned","displayName":"pbflabsbbrup1","message":"Device Down: No response from device for last 5 polls","severity":"Critical"},

{"source":"pbflabsbbrup1-r2.dn.srp.gov.10000000001","modTime":"1529514836949","category":"Wireless","status":"1","entity":"pbflabsbbrup1-r2.dn.srp.gov.10000000001_Poll","modTimeStr":"20 Jun 2018 10:13:56 AM MST","AckBy":"UnAssigned","displayName":"pbflabsbbrup1-r2","message":"Device Down: No response from device for last 5 polls","severity":"Critical"},

{"source":"pbflabsabrup1-r1.dn.srp.gov.10000000001","modTime":"1529512346040","category":"","status":"3","entity":"pbflabsabrup1-r1.dn.srp.gov.10000000001_MIMOMAX-BRU-P-MIB_mwlLogoutTrap_trap","modTimeStr":"20 Jun 2018 09:32:26 AM MST","AckBy":"UnAssigned","displayName":"pbflabsabrup1-r1","message":": Logout success","severity":"Attention"}],"TotalRecords":4}}
    • Related Articles

    • Accessing OpManager PGSQL Database

      INTRODUCTION OpManager tool relies on PostgreSQL (PGSQL) database for data storage. This document describes how to access the database to run customized reports METHODS OF ACCESS The PGSQL database can be accessed locally (or by using SSH session) ...
    • OpManager showing to many Interface Discard Alarms

      Description OpManager application is raising a lot of alarms for High Discard rates on mdl0 interface. Alarms on the SRP Lab in Chch, this might make it easier for Dev to capture and analyse the problem. Similar to SRP I see that the discards have ...
    • SCP files from OpManager using configlets

      OpManager can transfer files to MMX radios, this ability to push a file to the radio was added to help with firewall rules that prevented the MMX radio from getting a file. The firewall rule typically allowed SCP from the secure side out to a radio, ...
    • OpManager Trap Processor Config

      OpManager Trap Processor Config Trap processor can be edited to display a number of labels and information based on the markup language and variables (VarBinds) https://pitstop.manageengine.com/portal/kb/articles/how-to-configure-trap-message Changes ...
    • SQL Database query for OpManager

      SQL Database query for OpManager  OpManager allows searches for database information, while logged into the server there is a link at the top right to various links for help and searches. The image that looks like headphones is the link to support ...