Imaging Response Agent health check is failing
Description
This alert is triggered when the latest check that the Imaging Manager reported says that the Imaging Response Agent may not be working. The Imaging Manager reports this when imaging results are waiting for the Imaging Response Agent and none of the imaging jobs that were sent for imaging more than 30 minutes ago has had a document update in the last 30 minutes.
Resolution Guidance
Impact When Active
- Imaging results are waiting for the Imaging Response Agent, so imaging jobs may not complete. Documents may not be marked as imaged and the jobs may stay in progress.
How To Resolve
- Log into Relativity and go to the Agents tab. Make sure that the Imaging Response Agent is enabled and running. If the agent is stuck, disable it and then enable it again.
- After the fix, wait for the alert to clear. It clears when the Imaging Manager next reports the Imaging Response Agent as healthy, which is at its next run (every 60 minutes by default), not at the moment when the Imaging Response Agent works again. If no healthy result follows, it clears 75 minutes after the last failed check.
You can also try..
- Check the log of the Imaging Response Agent for errors, and search the log of the Imaging Manager for "Imaging Response Agent may not be working" to see how many imaging jobs have no activity. The [Relativity] Imaging Logs saved search in Kibana Discover shows the warning and error logs of the imaging agents.
- Open the Imaging Queue & Latency dashboard in Kibana and check that the Imaging Response Agents tile shows the agents that you expect. The Imaging Errors & Warnings dashboard shows errors of the Imaging Manager and the Imaging Response Agent.
- Check that Service Bus and SQL Server are available. The Imaging Response Agent needs both.
Alert Details
How the check works
The Imaging Manager does not check the Imaging Response Agent continuously. It checks once each time it runs. By default the Imaging Manager runs every 60 minutes; the Run Interval of the Imaging Manager is on the Agents tab. On each run, the Imaging Manager reports a problem when all of the following are true:
- Imaging results are waiting for the Imaging Response Agent.
- At least one imaging job was sent for imaging more than 30 minutes ago. The default limit is 30 minutes.
- None of those imaging jobs has had a document update in the last 30 minutes.
If the Imaging Manager is not running, or an earlier step of its run fails, the Imaging Response Agent is not checked in that run and this alert cannot become active, so also check that the Imaging Manager agent is enabled and running.
When the alert becomes active and when it clears
The alert becomes active a few minutes after an Imaging Manager run reports the problem. With the default settings it can appear between 30 and 90 minutes after the Imaging Response Agent stopped working: the imaging jobs must show no document update for 30 minutes, and the next Imaging Manager run can be up to 60 minutes away.
The alert looks at the newest result of the last 75 minutes (the default Run Interval of 60 minutes plus 15 minutes of margin). It is active while that result is unhealthy and it clears as soon as the Imaging Manager writes a healthy result. The alert does not clear at the moment when the Imaging Response Agent works again, but at the next Imaging Manager run, because the Imaging Manager writes one result per run. A healthy result means that, at that run, the Imaging Manager found no imaging job that was waiting for the Imaging Response Agent. For example:
| Time | What happens | Alert |
|---|---|---|
| 10:00 | The Imaging Manager check fails | Becomes active a few minutes later |
| 10:20 | The Imaging Response Agent is fixed and imaging resumes | Still active |
| 11:00 | The next Imaging Manager check passes and a healthy result is written | Clears |
The alert clears only when a healthy result is written. Only if none follows, for example because the Imaging Manager stops running or the Imaging version does not write healthy results, the failed result leaves the 75-minute look-back window of the alert and the alert clears then. While the Imaging Response Agent stays broken, every run writes a new unhealthy result, so the alert stays active without gaps.
A healthy result does not prove that the Imaging Response Agent works. If no imaging job is waiting at that moment, for example because the job was removed or no job was sent, the check passes and the alert clears. The alert becomes active again when a later run finds an imaging job that is waiting.
The time window of the alert does not follow the Run Interval of the Imaging Manager. If the Run Interval is 75 minutes or more, a failed result can leave the window before the next run, and the alert can clear and become active again with every run while the Imaging Response Agent is still not working.
Alert Condition Details
| Name | Value | Description |
|---|---|---|
| Rule Type | ES|QL | |
| Data View | logs-* | The health check is written as a log record |
| Query | FROM logs-* \| WHERE labels.event_type == "health_check" AND labels.event_source == "Imaging" AND labels.name == "relsvr.imaging.response_agent_active" \| SORT @timestamp DESC \| LIMIT 1 \| WHERE labels.status_state == "unhealthy" \| KEEP @timestamp, host.name, labels.status_state
|
Keeps only the newest Imaging Response Agent result, and only if it is unhealthy |
| Group | Newest result | One row at most |
| Threshold | > 0 | A row exists only when the newest result is unhealthy |
| Time Window | 75 minutes | Results older than this are not looked at |
| Frequency | 1 minute |
Alert Metric Details
Metric Name: relsvr.imaging.response_agent_active
Metric Description: The result of the Imaging Response Agent health check that the Imaging Manager writes on each run, as a log record. The alert looks at the newest result and fires when it is unhealthy.
Metric Attributes:
| Attribute Name | Description |
|---|---|
| labels.event_type | The kind of log record: health_check |
| labels.event_source | The component that wrote the record: Imaging |
| labels.name | The name of the health check: relsvr.imaging.response_agent_active |
| labels.status_state | The result of the check: healthy or unhealthy |
| host.name | The host that runs the Imaging Manager |