ManageEngine® Applications Manager Chapter 10.7 AddMonitor API |
||
This API allows the user to configure monitors in Applications Manager.
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
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> |
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"> |
Refer this page for a list of common error conditions.
GetMonitorData API |
|
AddMonitor API - Application Servers |