# Integration health including the details like list of active integrations with failures count

## Description

* If you want to get the health status of all active integrations between two systems, then you can use this sample script.
* Health status includes number of active integrations, failure count for all integrations, global failure present or not, etc.

## Input

* Instance details
  * Instance details like <code class="expression">space.vars.SITENAME</code> instance url, username and password are to be given in **instanceDetails.properties** file available within script.
* End Point details (To be given at the time of script execution)
  * End Point 1 Id
  * End Point 2 Id

## Output

* Number of active integrations
* Number of active synchronizations
* Synchronization details like synchronization direction, failure count present in the integration, was there any global error in last cycle?, global error timestamp.

## Script

You can download the script from [here](https://opshubtrial-my.sharepoint.com/:u:/g/personal/support_opshub_com/EcIhGxnr2M9Nt1mK2w-i7ZAB0O2XJ1-Sc8q8OnWYgZqPGg).

Below is an example of execution of script which shows the input and output.

<div align="center"><img src="/files/Nbt0kMeiPJwlqXVdfvwa" alt="" width="700"></div>

<div align="center"><img src="/files/ytENnRRVbNx7vP2tjRUc" alt="" width="700"></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opstech.gitbook.io/opstech-docs/manage/api/sample-use-cases/use-case-integration-healthcheck.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
