Submitting forms on the support site are temporary unavailable for schedule maintenance. If you need immediate assistance please contact technical support. We apologize for the inconvenience.
How to get information about the monitored system when querying alarms via REST API?
Description
When analyzing the alarms queried via REST API, the information about monitored host or database is missing.
How to get those details via REST API together with the related alarm.
Cause
The REST API returns the alarm event object which is an independent object. It has no reference to the monitored system.
Resolution
To get these information please extend the alarm message. The alarm message is combined in the rule itself and the rule scoped object contains the information about the monitored system.
Please follow these steps:
First create new rule variables. Find the needed rule on dashboard "Administration | Rules & Notification | Rules" and open it to edit it
Select the tab "Rules Variables"
Add an "Expression" to get the host details: Enter the variable name, for example "host" and then the value "scope.monitoredHost.name". Now click on the "Add" button.
If needed add the agent name too. Add another "Expression" by entering the variable name, for example "agent". Then enter the value "scope.monitoringAgent.name" and click on the "Add" button.
Both variables should appear now in the list and can be used in the alarm message of each condition. Please be careful that you do not overwrite existing variables. If the variable name "host" or "agent" exist already, choose another name.
Now these variables can be used in the alarm message. Open the needed condition and add the variable to the "Alarm message", for example: The agent @agent monitoring system @host is affected.
Foglight for Databases
6.1.0, 6.0.0, 5.9.7, 5.9.5, 5.9.4, 5.9.3, 5.9.2
Topic(s):
How To
Article History:
Created on: 12/5/2019 Last Update on: 6/8/2023
Thank you for your feedback for Topic Request
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Welcome to Quest Support
You can find online support help for Quest *product* on an affiliate support site. Click continue to be directed to the correct support content and assistance for *product*.
Search All Articles
IE 8, 9, & 10 No longer supported
The Quest Software Portal no longer supports IE8, 9, & 10 and it is recommended to upgrade your browser to the latest version of Internet Explorer or Chrome.