---
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.*

## :fa-table: At a Glance {#at-a-glance}

| 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 |

## :fa-gears: 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, :Nodinite: shows an alert to all users so an administrator can act; see [What is an Alarm Queue Entry][Alarm Queue Entry].

## :fa-code: 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.*  

## :fa-lightbulb: 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.

## :fa-hand-point-right: Next Steps

* :fa-bell: [Alarm Queue Overview][]  
* :fa-pen-to-square: [Manage System Parameters][]  

## :fa-link-horizontal: Related Topics

* :fa-list-check: [What is an Alarm Queue Entry][Alarm Queue Entry]  
* :fa-plug-circle-bolt: [Alarm Plugins][]  
* :fa-diagram-project: [Alarm Plugins Overview – the alert flow][Alarm Plugins Overview]  
* :fa-watch-fitness: [Monitoring Service][]  
* :fa-screwdriver-wrench: [Managing Monitoring Service][]  
* :fa-sliders: [System Parameters][]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SystemParameters/AlarmQueueSettings.png

[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/What%20is%20an%20Alarm%20Plugin.md
[Alarm Plugins Overview]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Overview.md#fa-diagram-project-understanding-the-alert-flow
[Alarm Queue Entry]:{ndr}/Administration/5.%20Settings/4.%20Alarm%20Queue/Features/What%20is%20an%20Alarm%20Queue%20Entry.md
[Alarm Queue Overview]:{ndr}/Administration/5.%20Settings/4.%20Alarm%20Queue/Overview.md
[Hero]:{ndm}/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SystemParameters/SystemParameters_AlarmQueueSettings.gif
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[Managing Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Features/Managing%20Monitoring%20Service.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md