This article describes how to use a health-check script to detect downtime or slowdowns before they affect users. Monitoring the Okta tenant ensures services remain live and responsive, keeps logins smooth, and minimizes interruptions across all connected applications.
- Okta tenants
- Monitoring solutions
To confirm endpoint availability, execute the following command:
curl -X GET -o /dev/null -w "%{http_code}" https://<SUBDOMAIN>.okta.com/login/default
This command returns a 200 response along with the requested resource. The components of the command are:
-
-X GETspecifies the method to use when starting the transfer. -
-o /dev/nullsuppresses the response bodies. -
-w "%{http_code}"makes curl write the numerical response code found in the last retrieved HTTP or File Transfer Protocol (FTP) transfer. -
https://<SUBDOMAIN>.okta.com/login/defaultis the endpoint of the resource that curl requests.
NOTE: Okta uses this endpoint to handle native authentication. It returns a 4xx or 5xx response if there are system issues. However, user-based authentication is a more reliable choice for assessing system operability, as it confirms endpoint availability and successful user logins.
