Skip to content

Commit ed7b0d1

Browse files
committed
Document Notification Source
Briefly describe the required configuration for Icinga Notifications Source next to mentioning it in the About section.
1 parent 0c95e49 commit ed7b0d1

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

config.example.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ redis:
146146
# # URL to the API root.
147147
# api-base-url: http://localhost:5680
148148
#
149-
# # Source or username to authenticate against the /process-event API.
150-
# username: source-2
149+
# Username to authenticate against the Icinga Notifications API.
150+
# username: icingadb
151151
#
152152
# # Password for the defined user.
153153
# password: insecureinsecure

doc/01-About.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ Icinga DB Web also connects to the Icinga 2 API with its Command Transport to ac
3434

3535
These are the components of Icinga DB embedded into an Icinga setup with Icinga 2 and Icinga Web 2.
3636

37+
Since the Icinga DB daemon always receives the latest information from Redis®, it is an ideal candidate to distribute information further.
38+
In addition to inserting data into a relational database, Icinga DB can also forward events to [Icinga Notifications](https://icinga.com/docs/icinga-notifications/),
39+
as described in the [configuration section](03-Configuration.md#notifications-source-configuration).
40+
3741
## Installation
3842

3943
To install Icinga DB see [Installation](02-Installation.md).

doc/03-Configuration.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ ICINGADB_LOGGING_OPTIONS=database:error,high-availability:debug
146146
| runtime-updates | Runtime updates of config objects after the initial config synchronization. |
147147
| telemetry | Reporting of Icinga DB status to Icinga 2 via Redis® (for monitoring purposes). |
148148

149-
## Retention
149+
## Retention Configuration
150150

151151
By default, no historical data is deleted, which means that the longer the data is retained,
152152
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
174174
| count | **Optional.** Number of old historical data a single query can delete in a `"DELETE FROM ... LIMIT count"` manner. Defaults to `5000`. |
175175
| options | **Optional.** Map of history category to number of days to retain its data. Available categories are `acknowledgement`, `comment`, `downtime`, `flapping`, `notification` and `state`. |
176176

177+
## Notifications Source Configuration
178+
179+
Icinga DB can act as an event source for [Icinga Notifications](https://icinga.com/docs/icinga-notifications/).
180+
If configured, Icinga DB will submit events to the Icinga Notifications API.
181+
182+
For YAML configuration, the options are part of the `notifications-source` dictionary.
183+
For environment variables, each option is prefixed with `ICINGADB_NOTIFICATIONS_SOURCE_`.
184+
185+
| Option | Description |
186+
|--------------|-----------------------------------------------------------------------------------|
187+
| api-base-url | **Optional.** Icinga Notifications API base URL, such as `http://localhost:5680`. |
188+
| username | **Optional.** Icinga Notifications API user for this source. |
189+
| password | **Optional.** Icinga Notifications API user password. |
190+
177191
## Appendix
178192

179193
### Duration String

0 commit comments

Comments
 (0)