Schedule demo

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

https://[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]&discoverInterval=[INTERVAL]

Supported HTTP methods: POST

Allowed roles: Administrator

Request Parameters

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

FieldDescription        
type
The type of the monitor you want to add. Value should be Nutanix.
hostThe name of the host in which Nutanix is running.
portThe port number where Nutanix is running.
passwordThe password of the user who has permission to access the Nutanix deployment.
addtoGroupThe name of the monitor group you want to associate Nutanix monitor to. Not Mandatory.
groupIDThe group ID of the monitor group you want to associate Nutanix monitor to. Not Mandatory.
AddVMSYou 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.
discoverIntervalThe time interval for automatically discovering and monitoring child monitors in minutes.

Sample Request

Rest-API with Password:
https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Nutanix&displayname=nutanixmon&host=apm-host&port=9440&UserName=admin&Password=appman&AddVMS=2

Rest-API with Credentials:
https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Nutanix&displayname=nutanixmon&host=apm-host&port=9440&credentialID=1&AddVMS=2&DiscoverNode=yes&discoverInterval=10

Nutanix Multi-Cluster

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=NutanixMultiCluster&displayname=[DISPLAYNAME]&host=[PRISM_CENTRAL_HOST]&port=[PRISM_CENTRAL_PORT]&UserName=[USERNAME]&Password=[PASSWORD]&credentialID=[CREDENTIALID]&discoveryFilter=[REGEX]&deleteAction=[RETAIN/UNMANAGE/DELETE]&discoverInterval=[DISCOVERY_INTERVAL]&pollInterval=[POLL_INTERVAL]&addToGroup=[GROUPNAME]&groupID=[GROUPID]

Supported HTTP methods: POST

Allowed roles: Administrator

Request Parameters

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

FieldDescription
typeThe type of the monitor you want to add. Value should be NutanixMultiCluster.
displaynameThe display name for the Nutanix Multi-Cluster monitor.
hostThe Prism Central Hostname or IP address.
portThe Prism Central port. Default is 9440.
UserNameUsername with permission to access Prism Central.
PasswordPassword for the above user. Not required if credentialID is used.
credentialIDID of the stored credential to be used for authentication. Optional.
discoveryFilterOptional discovery regex filter to include only matching Nutanix clusters.
deleteActionAction to perform when a previously discovered cluster is no longer found. Possible values:
  • Retain
  • Unmanage
  • Delete
discoverIntervalThe periodic interval (in minutes) for cluster discovery.
pollIntervalThe polling interval (in minutes) for Prism Central—level operations.
addToGroupName of the monitor group to which this monitor must be added (optional).
groupIDID of the monitor group (optional).

Sample Request

REST API with Username/Password:
https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=NutanixMultiCluster&displayname=multiCluster01&host=pc-host&port=9440&UserName=admin&Password=admin123&discoverInterval=10&pollInterval=5&deleteAction=Unmanage

REST API with Credential ID:
https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=NutanixMultiCluster&displayname=multiCluster01&host=pc-host&port=9440&credentialID=2&discoveryFilter=cluster.*&discoverInterval=10&pollInterval=5&deleteAction=Retain

Monitored Parameters

The Nutanix Multi-Cluster monitor currently performs cluster discovery only. No performance metrics are available at this level. All metrics are available under each discovered Nutanix (Prism Element) child monitor.

CISCO UCS

Syntax

https://[HOST]:[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.

FieldDescription        
type
The type of the monitor you want to add. Value should be CiscoUCS.
hostThe name of the host in which the CISCO UCS server is running.
portThe port number where the CISCO UCS server is running.
usernameThe username of the Cisco UCS server.
passwordThe password of the Cisco UCS server.
isSSLEnabledDenotes if SSL is enabled or not. Possible values are either true or false.
timeoutThe timeout value in seconds.

Sample Request:

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=CiscoUCS&host=apm-host&port=80&username=admin&password=appman&timeout=40&displayname=RestAPI&isSSLEnabled=true

Loved by customers all over the world

"Standout Tool With Extensive Monitoring Capabilities"

It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.

Reviewer Role: Research and Development

carlos-rivero
"I like Applications Manager because it helps us to detect issues present in our servers and SQL databases."
Carlos Rivero

Tech Support Manager, Lexmark

Trusted by over 6000+ businesses globally