Schedule demo

AddMonitor APIs - Mail Servers


This section explains how to use the AddMonitor API to add monitors of the category type 'Mail Server'. The following monitors are supported:

Supported HTTP methods: POST

Allowed roles: Administrator

Exchange Server

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&displayname=[DISPLAYNAME] &host=[HOST]&username=[USERNAME]&password=[PASSWORD]&version=[VERSION]&ServerRole[2019/2016/2013/2010/2007]=[ServerRole]&UsePowershell=[USEPOWERSHELL]&Timeout=[TIMEOUT]

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 mail server you want to add. Value should be Exchange Server.
hostThe name of the host where the Exchange server is running.
usernameThe user name for the system in which Exchange server is running.
passwordThe password for the system in which Exchange server is running.
versionThe Exchange server version. Supported versions are 2003, 2007, 2010, 2013, 2016 and 2019.
ServerRole2019Supported roles are mbxserver2019 and edgeserver2019.
ServerRole2016Supported roles are mbxserver2016 and edgeserver2016.
ServerRole2013Supported roles are mbxserver2013, casserver2013 and edgeserver2013.
ServerRole2010Supported roles are mbxserver2010casserver2010edgeserver2010hubserver2010 and umserver2010.
ServerRole2007Supported roles are mbxserver2007casserver2007hubserver2007edgeserver2007 and umserver2007.
UsePowershellTo use powershell for datacollection use “Yes” or else use “No”.This argument is Mandatory.
TimeoutThe timeout interval in seconds. Value should be greater than 120 seconds. (Applicable only in Powershell mode of monitoring)

Sample Request

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Exchange Server&displayname=apmexchange&host=emp-ex03&username=exchange\admin&password=appman&version=2019&ServerRole2019=mbxserver2019&UsePowershell=Yes&Timeout=120

Mail Server

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&displayname=[DISPLAYNAME] &host=[HOST]&port=[PORT]&username=[USERNAME]&password=[PASSWORD]&version=[VERSION]

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 monitor you want to add. Value should be Mail Server.
hostThe name of the host where the mail server is running.
portThe SMTP port number
emailidAn email id available in the mail server.
timeoutThe time out value in seconds.
mailMsgThe message to appear in the subject of the email.
mailSubjectThe message to appear in the subject of the mail.
smtpauthUse the smtpauth=true option to enable SSL.
username
password
If the SMTP server requires authentication, specify the User Name and Password
sslEnabledUse the SSLEnabled=true option to enable SSL.
tlsEnabledUse tlsEnabled=true to enable TLS for securing data transmission.
popenabledIf you with to select POP as the Mail Fetching Server, use popenabled=true.
fetchEnabledSpecify fetchEnabled=true to Enable POP or IMAP Mail Fetching Server.
popPortIf the POP/Imap service is in a different host, specify its POP/Imap Port where POP service runs.
popUserName
popPassword
If the POP/Imap service is in a different host, provide the authentication details User Name and Password for the POP service.
popSSLEnabledUse popSSLEnabled=true to enable SSL for securing data transmission in POP/Imap
popTLSEnabledUse poptlsEnabled=true to enable TLS for securing data transmission in POP/Imap.
fetchTypeSelect the Mail Fetching Server. Values are POP and IMAP.
fsHostThe Mail Fetching Server POP/IMAP Host.
fsportThe Mail Fetching Server POP/IMAP port.
fsSSLEnabledUse the fsSSLEnabled=true option to enable SSL.
fsTLSEnabledUse the fsTLSEnabled=true option to enable TLS.

Sample Request

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Mail Server&host=smtp&displayname=apmmail&port=25&emailid=myesura@zohocorp.com&timeout=15&mailMsg=Testing mail server.

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