Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/11/2024 01:38 AM
Hi Team,
We understand we can use the below to understand instance up/down by checking the following
https://XXX.saviyntcloud.com/ECM/healthcheck
With the JSON returned, I would like to confirm if one of the DB_health or ES_Health status returns value other than pass, will the $.status at the end will be a value other than pass. This is to make sure scripting is done to check the status.
{"checks":{"DB_Health":{"status":"pass","errorcode":"NA","message":"DB Service is up"},"ES_Health":{"status":"pass","errorcode":"NA","message":"Elastic server is up"}},"description":"Health of ECM service","status":"pass","timestamp":"10-11-2024 08:14:43"}
Thanks,
Trace
Solved! Go to Solution.
10/11/2024 02:05 AM
it should be the last status.
10/11/2024 08:34 AM
So, yes, if one of the individual checks (DB_Health or ES_Health) has a status other than "pass", the $.status value at the end will change accordingly. You can script your check around this assumption to monitor the overall status easily.
{
"checks": {
"DB_Health": {"status": "pass", "errorcode": "NA", "message": "DB Service is up"},
"ES_Health": {"status": "pass", "errorcode": "NA", "message": "Elastic server is up"}
},
"description": "Health of ECM service",
"status": "pass",
"timestamp": "10-11-2024 08:14:43"
}