ManageEngine® Applications Manager


Chapter 10.7 AddMonitor API

<< Prev

Home

Next >>

 

AddMonitor API

 

This API allows the user to configure monitors in Applications Manager.

 

Request Parameters


The common parameters involved in the API request are described below:

 

Field Description        
apikey* The key generated from the Generate API Key option in the 'Admin' tab.
subnet The subnet where the server is running. The default value is 225.225.225.0.
pollInterval The interval at which the server needs to be polled. The default value is 5 minutes.
addToGroup Denotes whether the monitor should be added as part of a monitor group or not. The value can be either 'True' or 'False'.
groupID The id of the monitor group. This has to provided if 'addToGroup' value is 'True'.

 

* - mandatory

 

Sample Request

 

This example helps you add a Windows server to Applications Manager:

 

http://app-windows:9090/AppManager/xml/AddMonitor?apikey=0b0fd47feeff9050d6a45dd7b5bb5791&type=servers&host=app-xp4&snmptelnetport=161&os=WindowsXP&mode=SNMP&username=administrator&password=vembu

 

Example output:

 

<AppManager-response uri="/AppManager/xml/AddMonitor">
   <result>
      <response response-code="4000">
         <message>Monitor added successfully.</message>
      </response>
   </result>
</AppManager-response>

 

Sample Error

 

If the API is not executed correctly, the request will fail and errors will be thrown as shown below.

 

<Apm-response uri="/AppManager/xml/AddMonitor">
   <result>
      <response response-code="4225">
         <message>The Transaction mentioned in the request URL should be yes or no.</message>
      </response>    
    </result>
</Apm-response>

 

Refer this page for a list of common error conditions.

 

 

<< Prev

Home

Next >>

GetMonitorData API


AddMonitor API - Application Servers