---
title: FAQ - Connectivity Loss Handling
description: Learn what happens when the Nodinite RabbitMQ Monitoring Agent loses connectivity to a RabbitMQ cluster and how it recovers.
---

# FAQ - Connectivity Loss Handling

## Question

What happens if the agent loses connectivity to a RabbitMQ cluster?

## Answer

The agent detects connectivity failure during next monitoring cycle (default 60 seconds), marks the cluster [Resource][Resources] as **"Error"** with connectivity failure message, and triggers alerts. When connectivity restored (network recovery, RabbitMQ restart), agent resumes normal monitoring automatically—**no manual intervention required**.

## Failure Detection

Agent detects connectivity issues through:

* **HTTP timeout** (Management API doesn't respond within configured timeout)
* **Network errors** (DNS resolution fails, TCP connection refused, SSL handshake failure)
* **Authentication failures** (credentials expired, user deleted, permissions revoked)
* **Management Plugin disabled** (API returns 404 or service unavailable)

## Alert Behavior

When connectivity lost:

1. **Resource status** changes to "Error"
2. **Alert triggered** with error message (e.g., "Cannot connect to RabbitMQ Management API at https://rabbitmq-prod:15671 - Connection refused")
3. **Monitoring suspended** until connectivity restored
4. **Retry behavior**: Agent retries connection on next monitoring cycle (default 60 seconds)

## Automatic Recovery

When connectivity restored:

1. **Agent reconnects** on next monitoring cycle
2. **Resource status** changes back to "OK"
3. **Monitoring resumes** immediately
4. **Recovery alert** (optional) notifies operations that connection restored

**No manual restart or reconfiguration required.**

## Common Causes

|Cause|Detection|Resolution|  
|---|---|---|  
|**RabbitMQ server restart**|Connection refused during restart window|Wait for startup (30-60 seconds), agent reconnects automatically|  
|**Network outage**|DNS or TCP connection failure|Fix network connectivity, agent reconnects when network restored|  
|**Firewall rule change**|Connection timeout or refused|Verify the [firewall settings][Prerequisites firewall] for the agent → RabbitMQ Management API hop|  
|**SSL certificate expired**|SSL handshake failure|Renew certificate, agent reconnects after certificate replaced|  
|**Credentials changed**|401 Unauthorized|Update agent configuration with new credentials|  

## Best Practices

* **Configure alert throttling** to avoid alert storm during planned maintenance (e.g., suppress alerts for 30 minutes during RabbitMQ upgrade)
* **Monitor agent health** to ensure agent itself is running (agent down = no alerts from RabbitMQ clusters)
* **Test connectivity** after initial configuration to verify Management API accessible from agent server

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

<i class="fal fa-edit" aria-hidden="true"></i> [Configuration Guide][Configuration]  
<i class="fal fa-clipboard-check" aria-hidden="true"></i> [Prerequisites][Prerequisites]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

<i class="fal fa-book" aria-hidden="true"></i> [RabbitMQ Agent Overview][Overview]  
<i class="fal fa-question" aria-hidden="true"></i> [Troubleshooting Overview][Troubleshooting]  

[Configuration]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/getting-started/configuration/
[Overview]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/overview/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/getting-started/prerequisites/
[Prerequisites firewall]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/getting-started/prerequisites/#fa-shield-check-what-firewall-settings-are-required-for-the-rabbitmq-monitoring-agent
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/troubleshooting/overview/