Resolve HTTP Monitor Error Health Status Codes in Dynatrace

Summary: HTTP monitors in Dynatrace may return health status codes indicating connectivity or configuration issues. This guide lists common error codes, explains their meaning, and provides steps to restore monitoring accuracy.

Where to find HTTP Monitor Error/ Health Status Codes 

HTTP Monitor executions don’t always succeed. In addition to the HTTP response codes that a request can return, there are several Dynatrace error codes.

A summary of the HTTP Monitor error codes for a period can be seen in the HTTP Monitor details> Failed Requests card.

You can also, find the error code for the most recent failed, successful and on-demand executions in Analyze last failed execution. You can filter the JSON to just show the error. In the JSON the error code is called HealthStatusCode and the error description is HealthStatus.

Error/Health Status Codes and Suggested Actions

Error/Health Status CodeError Description/ Health StatusSuggested Actions
0Healthy
1SSL Communication errorCheck vuc-http-execution.log for more details.
2DNS query timeoutCheck vuc-http-execution.log for more details.
3Unknown HostCheck nslookup from the ActiveGate.
4Unexpected ErrorCheck vuc-http-execution.log and vuc-http.log for more info
5Redirects not allowed
6Invalid CodeStatus Code validation failed
Check Monitor> Settings>HTTP Requests> Request> Response Status Code Verification setting
7Script execution failedThere was a problem running one of the pre- or post-execution scripts. Some common causes are:
  • typos or syntax errors
  • referring to a method/ variable that hasn't been defined in the script
Check vuc-http-execution.log for more details.
8Script FailCheck vuc-http-execution.log for more details.
12Http Monitor Execution TimeoutUse Adapt Request Timeout to increase up to 60s. The HTTP Monitor Advanced settings preview can be used to increase the monitor timeout. Ask your CSM or Support for more details.
13Too many redirectsThe maximum number of redirects for synthetic monitors is 10. When a monitor reaches 11 redirects, it fails with this error. 
Reach out to your application team to find out why there are so many redirects and reduce them. 
15Connection timeoutTest connection using curl from the ActiveGate
Is a proxy needed?
If a public location, is this endpoint available? Do the public location IP addresses need to be allowlisted by the application?
16Connection RefusedDoes this endpoint require specific headers to be added?
Private location: Test connection using curl from the ActiveGate. Is a proxy needed? 
Public location: Is this endpoint available? Do the public location IP addresses need to be allowlisted by the application?
17Constraint Violated valueResponse validation failed.
Check Monitor> Settings>HTTP Requests> Request> Set rule for response validation setting
18Unknown Method ErrorUNKNOWN_METHOD_ERRORCheck vuc-http-execution.log and vuc-http.log for more info.
This occurs when a method is called in the pre-/ post- execution script that the monitor is unaware of. These are usually from third-party libraries. For these situations, you must add the code for the function into the script. Like these examples here and here
20SSL Expiry warning
24Request TimeoutTest connection using curl from the ActiveGateIs a proxy needed?
If a public location, is this endpoint available? Do the public location IP addresses need to be allowlisted by the application?
30Forbidden URL ErrorIP resolves to localhost, which, due to security reasons, is not allowed

Where to find HTTP Monitor Logs

You can either download the support archive or check directly for HTTP Monitor logs on a Private location. You can find where to check here.

What’s next

Open a chat or contact support if

  • you need to check the logs for an HTTP Monitor running on a public location, or
  • the issue is still not resolved after taking the above actions

What to read next:

:open_book:  Synthetic Troubleshooting Map

:open_book:  Synthetic Browser Monitor Error Codes

:open_book:  How can I find which ActiveGate my HTTP Monitor execution ran on?

:open_book:  Create and configure an HTTP monitor

:open_book:  Configure HTTP monitors (classic)

:open_book:  Pre- and post-execution scripts for HTTP monitors (classic)

17 Likes

Thanks for sharing this out @HannahM

1 Like

@HannahM  This is awesome, can this information be posted on the public documentation site? The table you created is so informative. We were just having problem #7 and we found this post while troubleshooting.  So valuable.

5 Likes

@HannahM Very Informative!

1 Like

What can be typical cause for the error number 7?

I am running some checks from a public location, so unable to check for myself.

For error code 7, Script execution failed, there was a problem running one of the pre- or post-execution scripts. Some common causes are:

  • typos or syntax errors
  • referring to a method/ variable that hasn’t been defined in the script

If you can’t find the error, you can open a chat or support ticket, and Dynatrace will provide the relevant log lines from the public location.