ManageEngine® SQLDBManager Plus


List Monitor

<< Prev

Home

Next >>

List Monitor API

 

ManageEngine SQLDBManagerPlus provides List Monitor API that allows the user to list details of monitor by the following categories.

This API lists all the monitors of a given type that are configured in SQLDBManagerPlus for the user corresponding to the API Key. This details displayed includes the Health and Availability of the monitor types, image type, Health outages and Critical/Warning/Clear/UP/Down count for each monitor type.

 

APIs for ListMonitor

1.  By monitor Type
             http://[ Host ]:[ Port ]/AppManager/xml/ListMonitor?apikey=[ API key ]&type=[ TYPE in AM_ManagedObject table ]

2. By particular monitor name
             http://[ Host ]:[ Port ]/AppManager/xml/ListMonitor?apikey=[ API key ]&resourceid=[ Resourceid ]

 

3.  Listing all the added monitors
             http://[ Host ]:[ Port ]/AppManager/xml/ListMonitor?apikey=[ API key ]&type=all

 

4.  API For XML Response
             
http://[ SQLDBM Host ]:[ SQLDBM Port ]/AppManager/xml/ListMonitor?apikey=[ API Key ]&type=all

 

5. For JSON Response
             
http://[ SQLDBM Host ]:[ SQLDBM Port ]/AppManager/json/ListMonitor?apikey=[ API Key ]&type=MSSQL-DB-Server

Note:

a) For getting all windows types, pass 'Windows' as type value

b) For all network devices simply pass 'NWD' as value for type.

 

Request Parameters

Field Description        
API Key The key generated from "Generate API" option in the Admin tab.
Type "type=<monitor type>" is used to list all the monitors in a specified monitor type.
<monitor type>  is TYPE in AM_ManagedObject table like Windows XP, MSSQL-DB-server, etc.
resourceid The resourceid of the monitor
type This value specifies the monitor type, to get all monitor types we need to pass 'all' as the value for the field type.

Extra Attributes:

IMAGEPATH This monitor type's image path
LASTALARMTIME This is the time at which last alarm has been generated.

Example API that is used to get XML of monitors by monitor type.

 

http://sqldbm-windows:9433/AppManager/xml/ListMonitor?apikey=[ Api Key ]&type=[ Type ]

Example API that is used to get XML of all monitors.

http://sqldbm-windows:9433/AppManager/xml/ListMonitor?apikey=65d0fa3e1f6c6bdcce1c3969f24c39a8

Example API that is used to get XML of a particular monitors.

http://sqldbm-windows:9433/AppManager/xml/ListMonitor?apikey=65d0fa3e1f6c6bdcce1c3969f24c39a8&resourceID=10000047

Example output:

Monitor Details:

DISPLAYNAME Monitor's Display Name
RESOURCE ID Monitor's Resource ID
TYPE Monitor type like Windows, Linux
Health Details Contains HEALTHMESSAGE that gives the Health Root Cause Message, Health Attribute ID, HEALTHSEVERITY - (5/4/1) - Clear/Warning/Crirical , STATUS - Clear/Warning/Critical
Availability Details Contains AVAILABILITYMESSAGE that gives the Availability Root Cause Message, Availability Attribute ID, AVAILABILITYSEVERITY - Up/Down (5/1), STATUS - UP/Down
Managed True - the monitor is in Managed state, False - the monitor is in Unmanaged State
RESOURCENAME Monitor's Resource Name
DESCRIPTION Description of the Resource like Network Resource
RCAPageURL URL that links to Root Cause Analysis details
DetailsPageURL URL that links to details page of the monitor
LASTALARMTIME This is the time at which last alarm has been generated.



<AppManager-response uri="/AppManager/xml/ListMonitor">
<result>
<response response-code="4000">
<Monitor DetailsPageURL="/showresource.do?resourceid=10000028&method=showResourceForResourceID&PRINTER_FRIENDLY=true" HEALTHATTRIBUTEID="3101" RESOURCENAME="IF-app-win7-64-3.csez.zohocorpin.com_MSSQL-DB-server_1433" Managed="true" HEALTHSEVERITY="1" AVAILABILITYATTRIBUTEID="3100" AVAILABILITYMESSAGE="Resource up.
The resource APP-WIN7-64-3 is available." TYPESHORTNAME="MS SQL" TYPE="MSSQL-DB-server" DESCRIPTION="Network Resource" AVAILABILITYSEVERITY="5" RESOURCEID="10000028" HEALTHMESSAGE="Health of APP-WIN7-64-3 is critical.
Root Cause :
1. Buffer Cache Hit Ratio 100 > 70 % (threshold).
" DISPLAYNAME="APP-WIN7-64-3" RCAPageURL="/jsp/RCA.jsp?resourceid=10000028&attributeid=3101" HEALTHSTATUS="critical" IMAGEPATH="/images/icon_monitors_mssql.gif" AVAILABILITYSTATUS="up" LASTALARMTIME="1380519049140"/>
</response>
</result>
</AppManager-response>

 

<< Prev

Home

Next >>

List Dashboards

List Monitor Groups