From 7ec28098f8e8d075da5a178ffcd0ffc5b68a31d8 Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Thu, 2 Oct 2025 11:13:29 +0200 Subject: [PATCH] Document Notification Source Briefly describe the required configuration for Icinga Notifications Source next to mentioning it in the About section. --- config.example.yml | 4 ++-- doc/01-About.md | 4 ++++ doc/03-Configuration.md | 16 +++++++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/config.example.yml b/config.example.yml index c4d47c9c..de5706ab 100644 --- a/config.example.yml +++ b/config.example.yml @@ -146,8 +146,8 @@ redis: # # URL to the API root. # api-base-url: http://localhost:5680 # -# # Source or username to authenticate against the /process-event API. -# username: source-2 +# Username to authenticate against the Icinga Notifications API. +# username: icingadb # # # Password for the defined user. # password: insecureinsecure diff --git a/doc/01-About.md b/doc/01-About.md index c880ac00..fea23d84 100644 --- a/doc/01-About.md +++ b/doc/01-About.md @@ -34,6 +34,10 @@ Icinga DB Web also connects to the Icinga 2 API with its Command Transport to ac These are the components of Icinga DB embedded into an Icinga setup with Icinga 2 and Icinga Web 2. +Since the Icinga DB daemon always receives the latest information from RedisĀ®, it is an ideal candidate to distribute information further. +In addition to inserting data into a relational database, Icinga DB can also forward events to [Icinga Notifications](https://icinga.com/docs/icinga-notifications/), +as described in the [configuration section](03-Configuration.md#notifications-source-configuration). + ## Installation To install Icinga DB see [Installation](02-Installation.md). diff --git a/doc/03-Configuration.md b/doc/03-Configuration.md index cccfd223..a1a3a069 100644 --- a/doc/03-Configuration.md +++ b/doc/03-Configuration.md @@ -146,7 +146,7 @@ ICINGADB_LOGGING_OPTIONS=database:error,high-availability:debug | runtime-updates | Runtime updates of config objects after the initial config synchronization. | | telemetry | Reporting of Icinga DB status to Icinga 2 via RedisĀ® (for monitoring purposes). | -## Retention +## Retention Configuration By default, no historical data is deleted, which means that the longer the data is retained, the more disk space is required to store it. History retention is an optional feature that allows to @@ -174,6 +174,20 @@ ICINGADB_RETENTION_OPTIONS=comment:356 | count | **Optional.** Number of old historical data a single query can delete in a `"DELETE FROM ... LIMIT count"` manner. Defaults to `5000`. | | options | **Optional.** Map of history category to number of days to retain its data. Available categories are `acknowledgement`, `comment`, `downtime`, `flapping`, `notification` and `state`. | +## Notifications Source Configuration + +Icinga DB can act as an event source for [Icinga Notifications](https://icinga.com/docs/icinga-notifications/). +If configured, Icinga DB will submit events to the Icinga Notifications API. + +For YAML configuration, the options are part of the `notifications-source` dictionary. +For environment variables, each option is prefixed with `ICINGADB_NOTIFICATIONS_SOURCE_`. + +| Option | Description | +|--------------|-----------------------------------------------------------------------------------| +| api-base-url | **Optional.** Icinga Notifications API base URL, such as `http://localhost:5680`. | +| username | **Optional.** Icinga Notifications API user for this source. | +| password | **Optional.** Icinga Notifications API user password. | + ## Appendix ### Duration String