ManageEngine® Applications Manager


AddMonitor API - Custom Monitors

<< Prev

Home

Next >>

AddMonitor API - Custom Monitors

 

This section explains how to use the AddMonitor API to add monitors of the category type 'Custom Monitors'. The following monitors are supported:

Windows Performance Counters

Syntax:


http://[Host]:[Port]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]
&displayname=[DISPLAYNAME]&host=[HOST]&username=[USERNAME]&password=[PASSWORD]&pollinterval=[POLLINTERVAL]

 

Request Parameters:

The parameters involved in the API request are described below. Also, refer the list of common Request Parameters.


Field Description        
type The type of the monitor you want to add. Value should be Windows Performance Counters.
host The name of the host where the Windows Performance Counters is running.
username The user name of the host running Windows Performance Counters.
password The password of the host running Windows Performance Counters.
pollinterval The interval at which you want the polling to happen.

Sample Request:


http://app-xp4:9090/AppManager/xml/AddMonitor?apiey=ee8d8e237bd5e1a0d8aed16a381c3b73
&type=Windows Performance Counters&host=app-xpmll&displayname=hhhh&username=asasaa&password=vembu

Top

Database Query Monitor

Syntax:


http://[Host]:[Port]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]
&displayname=[DISPLAYNAME]&host=[HOST]&port=[PORT]&username=[USERNAME]&password=[PASSWORD]
&databasetype=[DATABASETYPE]&databasename=[DATABASENAME]&showqueryoutput=[SHOWQUERYOUTPUT]
&queries=[QUERIES]

 

Request Parameters:

The parameters involved in the API request are described below. Also, refer the list of common Request Parameters.


Field Description        
type The type of the monitor you want to add. Value should be QueryMonitor.
host The name of the host where the databae server is running.
port The port number where the database is running
username The user name of the database server .
password The password of the database server.
databasetype The database type for which the query is executed.
databasename The name of the database server.
showqueryoutput Option to specify whether you prefer query output. Values are yes and no
queries Denotes the database query. There can be a maximum of five queries.

Sample Request:


http://prod-server8:9090/AppManager/xml/AddMonitor?apikey=bbab7f01458e96595b06d5c27efcc3af
&type=QueryMonitor&displayname=qury&host=app-xp2&port=1433&username=sa&password=Advent1&databasetype=MsSQL&databasename=AMDB&showqueryoutput=yes&queries=select * from user

Top


 

<< Prev

Home

Next >>

AddMonitor API - Cloud Apps

AddMonitor API - Database Servers