---
title: AlarmQueueSettings - System Parameter for Alarm Queue Retries and Timeouts
description: "AlarmQueueSettings controls how the Nodinite Monitoring Service retries alarms in the Alarm Queue: MaxRetries (0 = retry forever) and TimeoutSeconds per send. Defaults: 3 retries and 120 seconds."
---

# AlarmQueueSettings - System Parameter

**AlarmQueueSettings** controls the retry behaviour of the [Alarm Queue][Alarm Queue Overview]: how many times a queued alarm is retried, and how long one send may take. The [Monitoring Service][] reads it when it resends queued alarms through your [Alarm Plugins][].

![AlarmQueueSettings opened from the System Parameters list, its value changed from MaxRetries 3 and TimeoutSeconds 120 to MaxRetries 1 and TimeoutSeconds 30 and saved, then an alert sent through an Alarm Plugin with a wrong SMTP host waiting in the Alarm Queue with Retries 0 / 1, and after its one retry staying with Retries 1 / 1 and the No longer retried badge, animated walkthrough (7.12)][Hero]  
*Animated walkthrough: with `MaxRetries` set to `1`, an alert that can't be sent is retried once. Then it stays in the Alarm Queue, marked **No longer retried**, until an administrator fixes the cause and resets or purges the queue.*

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| Property | Value |
| --- | --- |
| Key | `AlarmQueueSettings` |
| Data type | json |
| Default | `{"MaxRetries":3,"TimeoutSeconds":120}` |
| Read by | [Monitoring Service][] |
| Takes effect | At the next run of the Alarm Queue: when the Monitoring Service starts, then every hour, or every 5 minutes while entries keep failing. No restart needed. |
| Status | ✅ Active |

## <i class="fal fa-gears" aria-hidden="true"></i> How It Works

When an [Alarm Plugin][Alarm Plugins] fails to send an alert, the [Monitoring Service][] adds it to the Alarm Queue as an [Alarm Queue Entry][] and retries it later. **AlarmQueueSettings** sets the limits for those retries:

* Each send attempt for a queued alarm may take at most `TimeoutSeconds`.
* After `MaxRetries` failed retries, the Monitoring Service leaves the entry alone: it stops retrying, and the entry stays in the Alarm Queue with the badge **No longer retried**. The **Retries** column shows the retries done out of `MaxRetries`, for example `1 / 1`. Fix the cause (for example, the [Alarm Plugin][Alarm Plugins] configuration or the target service), then use **Reset All Retries** to have it retried, or **Purge Queue** or delete the entry, in the [Alarm Queue Overview][].
* With `MaxRetries` set to `0`, the Monitoring Service retries the entry forever, until it is sent or an administrator deletes it.

<div class="mermaid">
graph LR
    A[fa:fa-bell Alert fails to send] --> B[fa:fa-list Alarm Queue Entry]
    B --> C{fa:fa-rotate Retry, max TimeoutSeconds per send}
    C -->|Sent| D[fa:fa-check Entry removed]
    C -->|Failed, retries left or MaxRetries = 0| B
    C -->|Failed, MaxRetries reached| E[fa:fa-user-gear Entry stays for the administrator]
    style D fill:#93d16d,color:#000
    style E fill:#FFD525,color:#000
</div>

*Retry flow for a queued alarm. Green: the alarm was sent and the entry removed. Yellow: retries are used up and the entry waits for an administrator.*

While the Alarm Queue holds entries, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> shows an alert to all users so an administrator can act; see [What is an Alarm Queue Entry][Alarm Queue Entry].

## <i class="fal fa-code" aria-hidden="true"></i> Value Format

| Property | Type | Default | Meaning |
| --- | --- | --- | --- |
| `MaxRetries` | integer | `3` | How many times a queued alarm is retried before the Monitoring Service leaves it alone. `0` = retry forever. |
| `TimeoutSeconds` | integer (seconds) | `120` | How long a single queued alarm may take to send. |

Example that retries five times and allows one minute per send:

```json
{
  "MaxRetries": 5,
  "TimeoutSeconds": 60
}
```

The value must be valid JSON. The [System Parameter][System Parameters] edit page in the [Web Client][] validates the JSON before you save it. The edit page also refuses a `MaxRetries` below `0` and a `TimeoutSeconds` of `0` or less. The [Web API][] doesn't validate this parameter, so test a scripted value in the Web Client first. A stored value that isn't valid doesn't stop the queue: the Monitoring Service then uses the defaults, 3 retries and 120 seconds.

![Edit page of the AlarmQueueSettings System Parameter with the breadcrumb, the disabled Save in the page toolbar, Key, Description, the JSON value {"MaxRetries":3,"TimeoutSeconds":120}, Json model is valid, Data type json, and the disabled Save and Save and close and the Close button below the form (7.12)][1]  
*The System Parameter edit page shows the key, its description, the JSON value, and the 'Json model is valid' result of the validation.*  

## <i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value

* Keep the default unless alarms queue up often. Three retries cover short outages of a mail server or webhook endpoint.
* Raise `TimeoutSeconds` when an [Alarm Plugin][Alarm Plugins] calls a slow target, such as an HTTP webhook to an issue-tracking system.
* Use `MaxRetries` `0` with care: an alarm that can never be delivered, for example because of a wrong address, keeps retrying until an administrator deletes the entry.

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

* <i class="fal fa-bell" aria-hidden="true"></i> [Alarm Queue Overview][]  
* <i class="fal fa-pen-to-square" aria-hidden="true"></i> [Manage System Parameters][]  

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

* <i class="fal fa-list-check" aria-hidden="true"></i> [What is an Alarm Queue Entry][Alarm Queue Entry]  
* <i class="fal fa-plug-circle-bolt" aria-hidden="true"></i> [Alarm Plugins][]  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [Alarm Plugins Overview – the alert flow][Alarm Plugins Overview]  
* <i class="fal fa-watch-fitness" aria-hidden="true"></i> [Monitoring Service][]  
* <i class="fal fa-screwdriver-wrench" aria-hidden="true"></i> [Managing Monitoring Service][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [System Parameters][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SystemParameters/AlarmQueueSettings.png

[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[Alarm Plugins Overview]:https://docs.nodinite.com/administration/settings/alarm-plugins/overview/#fa-diagram-project-understanding-the-alert-flow
[Alarm Queue Entry]:https://docs.nodinite.com/administration/settings/alarm-queue/features/what-is-an-alarm-queue-entry/
[Alarm Queue Overview]:https://docs.nodinite.com/administration/settings/alarm-queue/overview/
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SystemParameters/SystemParameters_AlarmQueueSettings.gif
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[Managing Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/features/managing-monitoring-service/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/