AddMonitor APIs - Converged Infrastructure


This section explains how to use the AddMonitor API to add monitors of the category type 'Converged Infrastructure'. The following converged infrastructures are supported:

Nutanix

Syntax

http://[Host]:[Port]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&displayname=[DISPLAYNAME]&host=[HOST]&port=[PORT]&UserName=[USERNAME]&Password=[PASSWORD]&addtoGroup=[ADDTOGROUP]&groupID=[GROUPID]&AddVMS=[MONITORVMS]

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 Nutanix.
host The name of the host in which Nutanix is running.
port The port number where Nutanix is running.
password The password of the user who has permission to access the Nutanix deployment.
addtoGroup The name of the monitor group you want to associate Nutanix monitor to. Not Mandatory.
groupID The group ID of the monitor group you want to associate Nutanix monitor to. Not Mandatory.
AddVMS You can specify whether you want to monitor the VMs present in the Nutanix instance or not. Possible values are:
  • 0 - Do not discover VMs
  • 1 - Discover VM but do not monitor metrics
  • 2 - Discover and monitor VM metrics.

Sample Request

Rest-API with Password:
http://localhost:9090/AppManager/xml/AddMonitor?apikey=ca986ad1a6b1a445d310670b5278129d&type=Nutanix&displayname=34.83.107.83&host=34.83.107.83&port=9440&UserName=admin&Password=jUPFS3H7!N&AddVMS=2

Rest-API with Credentials:
http://localhost:9090/AppManager/xml/AddMonitor?apikey=1f1741046689f3adcfc3ae2bdc874330&type=Nutanix&displayname=35.247.63.119&host=35.247.63.119&port=9440&credentialID=1&AddVMS=2&DiscoverNode=yes

CISCO UCS

Syntax

http://[APM_HOST]:[APM_PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&host=[HOSTNAME]&port=[PORT]&isSSLEnabled=[IS SSL ENABLED]&username=[USERNAME]&password=[PASSWORD]&timeout=[TIMEOUT]&displayname=[DISPLAYNAME]

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 CiscoUCS.
host The name of the host in which the CISCO UCS server is running.
port The port number where the CISCO UCS server is running.
username The username of the Cisco UCS server.
password The password of the Cisco UCS server.
isSSLEnabled Denotes if SSL is enabled or not. Possible values are either true or false.
timeout The timeout value in seconds.

Sample Request:

http://localhost:9085/AppManager/xml/AddMonitor?apikey=8f1fa34b3aa5cf06a7d555b3cb6ef5f8&type=CiscoUCS&host=172.24.157.134&port=80&username=ucspe&password=ucspe&timeout=40&displayname=RestAPI&isSSLEnabled=true