Schedule demo

AddMonitor APIs - EUM Monitors


This section explains how to use the AddMonitor API to add monitors of the category type End User Monitoring (EUM). The following monitors are supported:

Supported HTTP methods: POST

Allowed roles: Administrator

The following parameters are common in API requests for EUM monitors:

FieldDescription
eumAgentsThe display name(s) of the EUM agent(s). If there are multiple entries, they can be comma separated.
eumAgentsIdThe unique ID of the EUM agents configured. These can be specified as comma separated.
runOnServerSpecifies if the monitor has to be created in Applications Manager. Possible values are true or false.
 
Note: It is not mandatory to use both 'eumAgents' and 'eumAgentsId' parameters in the same API request. You can use either one of these.

Ping

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&displayname=[DISPLAYNAME]&host=[HOST]&timeout=[TIMEOUT]&eumAgents=[EUMAGENTS]&eumAgentsId=[EUMAGENTID]&runOnServer=[RUNONSERVER]

Supported HTTP method: POST

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 service you want to add. Value should be 'Ping Monitor'.
hostThe host in which the monitor is running.
timeoutThe timeout value in seconds.

Sample Request

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Ping Monitor&displayname=apmping&host=smrithil&timeout=5&eumAgents=eumflorida&runOnServer=true

DNS

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&displayname=[DISPLAYNAME]&timeout=[TIMEOUT]&TargetAddress=[TARGETADDRESS]&LookupAddress=[LOOKUPADDRESS]&RecordType=[RECORDTYPE]&SearchField=[SEARCHFIELD]&SearchValue=[SEARCHVALUE]&eumAgents=[EUMAGENTS]&eumAgentsId=[EUMAGENTID]&runOnServer=[RUNONSERVER]

Supported HTTP method: POST

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 service you want to add. Value should be 'DNSMonitor'.
displaynameThe display name of the host in which the monitor is running.
timeoutThe timeout value in seconds.
SearchFieldThe value of SearchField. Options include None, Record Name, Address, Additional Name, Target, Admin, Host, Alias, Port and Priority.
TargetAddressThe DNS Server host name or IP address.
LookupAddressThe address you want to check in the DNS Server.
RecordTypeThe expected record type returned for the lookup address. The options include A, AAAA, CNAME, MX, NS, PTR, SOA, SPF, SRV and TXT.
SearchValueThe expected record type returned for the lookup address. The options include A, AAAA, CNAME, MX, NS, PTR, SOA, SPF, SRV and TXT.

Sample Request

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=DNSMonitor&displayname=dnstttttt&timeout=15&TargetAddress=192.168.4.121&LookupAddress=appmanager.com&RecordType=A&SearchField=Record Name&SearchValue=appmanager.com&eumAgents=eumbe1&runOnServer=true

LDAP Server

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&displayname=[DISPLAYNAME]&username=[USERNAME]&timeout=[TIMEOUT]&LDAPServer=[LDAPSERVER]&LDAPServerPort=[LDAPSERVERPORT]&MatchingAttribute=[MATCHINGATTRIBUTE]&FilterCondition=[FILTERCONDITION]&IsSecured=[ISSECURED]&SearchFilter=[SEARCHFILTER]&SearchResult=[SEARCHRESULT]&SearchBase=[SEARCHBASE]&password=[PASSWORD]&eumAgents=[EUMAGENTS]&eumAgentsId=[EUMAGENTID]&runOnServer=[RUNONSERVER]

Supported HTTP method: POST

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 service you want to add. Value should be 'LDAP Server'.
usernameThe user name of the LDAP server.
timeoutThe timeout value in seconds.
LDAPServerThe Hostname or IP Address of LDAP Server.
LDAPServerPortThe port at which the LDAP server is running.
MatchingAttributeThe matching attribute value. Values include cn, uid, sn, displayname, givenname, objectclass, dc and ou
FilterConditionThe value of filter condition. Values include equals, contains and notequals
IsSecuredSpecifies if the connection is secure or not. Value is either yes or no.
SearchFilterThe value of Search Filter. This field is optional.
SearchResultThe string value that matches with search results. This field is optional.
SearchBaseThe value of SearchBase. This is mandatory field when adding a LDAP monitor.
passwordThe password of the LDAP server.
credentialIDID for the credential to be used.

Note: Credential ID can be used as an alternative to username and password fields.

Sample Request

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=LDAP Server&displayname=ldap_serverqqqq&username=cn=admin,cn=users,dc=pmp,dc=com&timeout=10&LDAPServer=pmp-2k8s&LDAPServerPort=389&MatchingAttribute=cn&FilterCondition=equals&IsSecured=no&SearchFilter=&SearchResult=&SearchBase=dc=matrix,dc=lab&Password=appman&eumAgents=eumbe1&runOnServer=true

Mail Server

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&host=[HOST]&port=[PORT]&displayname=[DISPLAYNAME]&emailid=[EMAILID]&timeout=[TIMEOUT]&authRequired=[AUTHREQUIRED]&sslEnabled=[SSLENABLED]&username=[USERNAME]&password=[PASSWORD]&tlsEnabled=[TLSENABLED]&pollinterval=[POLLINTERVAL]&mailsubject=[MAILSUBJECT]&fetchEnabled=[FETCHENABLED]&fetchType=[FETCHTYPE]&fsHost=[FSHOST]&fsport=[FSPORT]&fsSSLEnabled=[FSSSLENABLED]&fsTLSEnabled=[FSTLSENABLED]&fsUserName=[FSUSERNAME]&fsPassword=[FSPASSWORD]&eumAgents=[EUMAGENTS]&eumAgentsId=[EUMAGENTID]&runOnServer=[RUNONSERVER]

Supported HTTP method: POST

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 service you want to add. Value should be 'Mail Server'.
hostThe SMTP host name
portThe port at which SMTP is running.
emailidThe email address to which the mail will be sent.
timeoutThe timeout value in seconds.
authRequiredIndicates if the SMTP requires authentication. Values are 'Yes' or 'No'
sslEnabledIndicates if the SMTP host should be accessed through SSL. Values are 'Yes' or 'No'
usernameThe username of the SMTP host
passwordThe password of the SMTP host
tlsEnabledDenotes whether TLS should be used for SMTP. Values are true or false.
pollintervalThe polling interval of the monitor in seconds.
mailSubjectThe message to appear in the subject of the email.
fetchEnabledIndicates if the POP/IMAP server should be monitored. Values are 'Yes' or 'No'.
fetchTypeIndicates the service that is monitored. If you want to add POP type, specify the value as 1. If you want to monitor IMAP server, specify the value as 2.
fsHostThe host name of the POP/IMAP server
fsportThe port at which the POP/IMAP server is running.
fsSSLEnabledIndicates whether the POP/IMAP server is SSL enabled or not. Values are Yes or No.
fsTLSEnabledIndicates whether TLS should be used for POP/IMAP. Values are true or false.
fsUserNameThe user name of the POP/IMAP server.
fsPasswordThe password of the POP/IMAP server
credentialIDID for the credential to be used.

Note: Credential ID can be used as an alternative to username and password fields.

Sample Request

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Mail Server&host=smtp1&port=25&displayname=apmsmtp&emailid=admin@yourdomain.com&timeout=5&authRequired=Yes&sslEnabled=Yes&username=admin&password=appman&tlsEnabled=true&pollinterval=60&mailsubject=Testing Mail Server&fetchEnabled=Yes&fetchType=1&fsHost=POP1&fsport=110&fsSSLEnabled=Yes&fsTLSEnabled=true&fsUserName=fsadmin&fsPassword=fsappman&eumAgents=eum1&runOnServer=true

Telnet

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=Telnet (EUM)&displayname=[DISPLAYNAME]&host=[HOST]&port=[PORT]&timeout=[TIMEOUT]&eumAgents=[AGENTNAME]&runOnServer=[RUNONSERVER]

Supported HTTP method: POST

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 service you want to add. Value should be Telnet (EUM).
hostThe host name or IP address in which the telnet service is running.
timeoutThe time out value in seconds.
portThe port number in which Telnet is running.
eumAgentsThe display name(s) of the EUM agent(s), separated by comma.
runOnServerSpecifies whether the monitor has to be created in Applications Manager. (true or false)

Sample Request

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Telnet (EUM)&displayname=apmtelnet&host=smrithil&port=23&timeout=2&eumAgents=apm-eum-server&runOnServer=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