You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you just installed the module, do not forget to activate it on your Icinga Web instance(s) by using your
14
-
preferred way:
13
+
If you just installed Icinga Notifications Web, remember to activate it on your Icinga Web instance(s):
15
14
16
15
- Use Icinga Web's command-line interface on the webserver(s) and execute `icingacli module enable notifications`.
17
-
- Visit Icinga Web, log in as a privileged user and activate the module under `Configuration →
16
+
- Visit Icinga Web, log in as a privileged user and enable the module under `Configuration →
18
17
Modules → notifications` by switching the state from `disabled` to `enabled`.
19
18
20
19
<!-- {% endif %} -->
@@ -26,10 +25,10 @@ Connection configuration for the database, which both,
26
25
27
26
!!! tip
28
27
29
-
If not already done, initialize your database by following the [instructions](https://icinga.com/docs/icinga-notifications/latest/doc/02-Installation#setting-up-the-database).
28
+
If not already done, initialize your database by following these [instructions](https://icinga.com/docs/icinga-notifications/latest/doc/02-Installation#setting-up-the-database).
30
29
31
30
1. Create a new resource for the Icinga Notifications database via the `Configuration → Application → Resources` menu.
32
-
2. Configure the resource you just created as the database connection for the Icinga Notifications Web module using the
31
+
2. Configure the resource you just created as the database connection for Icinga Notifications Web using the
The currently supported channels can be found [here](01-About.md#available-channels).
41
40
42
-
They can be configured through `Configuration → Modules → notifications → Channels` and the credentials to be supplied
43
-
might differ depending on the channel type.
41
+
They can be configured through `Configuration → Modules → notifications → Channels`.
44
42
45
-
You need to configure at least one valid communication channel to be able to supply your contacts with notifications.
43
+
You need to configure at least one valid communication channel to fully configure Icinga Notifications Web.
46
44
47
45
## Sources Configuration
48
46
49
-
The notifications module operates on data fed by miscellaneous sources and is therefore not restricted to Icinga 2 only.
50
-
Consult the source specific documentation on how to integrate such.
47
+
Sources are the most vital part of Icinga Notifications. Without them, no events will be processed and no notifications
48
+
will be sent. So the next thing to configure is your first source. To be able to configure sources, an integration in
49
+
Icinga Web is required. Consult the source-specific documentation on how to integrate such.
51
50
52
-
You need to provide at least one valid source for this module to function properly.
51
+
How to integrate Icinga 2 is covered in the next section, for your convenience. :)
53
52
54
53
### Adding an Icinga 2 source
55
54
56
-
!!! tip
57
-
58
-
If there is no API user with the required permissions yet, read through [Icinga's API documentation](https://icinga.com/docs/icinga-2/latest/doc/12-icinga2-api/#authentication).
59
-
60
-
The API user needs the following [permissions](https://icinga.com/docs/icinga-2/latest/doc/12-icinga2-api/#overview):
61
-
62
-
- `events/*`
63
-
- `objects/query/*`
64
-
- `status/query`
65
-
66
-
If you want the notifications module to process Icinga 2 events, you will need to add it as a source:
55
+
Ensure that you use Icinga DB as the database backend for Icinga 2. If that is the case, you should already have
56
+
Icinga DB Web installed. This is the integration required to configure Icinga 2 as a source.
67
57
68
58
1. Navigate to `Configuration → Module → notifications → Sources` and add a new source.
69
-
2. Choose type `Icinga` and provide the Icinga 2 API credentials.
70
-
3. (Optional) Disable `Verify API Certificate` if you want
71
-
[Icinga Notifications](https://icinga.com/docs/icinga-notifications/latest) to skip its check for the certificate
72
-
validity of the given REST API endpoint.
59
+
2. Choose type `Icinga` and define a name as well as a set of credentials.
60
+
3. Open `/etc/icingadb/config.yml` on the host where Icinga DB is running and add the following lines:
61
+
The full documentation can be found [here](https://icinga.com/docs/icinga-db/latest/doc/03-Configuration/#notifications-source-configuration).
62
+
```yaml
63
+
notifications-source:
64
+
# URL to the API root.
65
+
api-base-url: http://localhost:5680
66
+
67
+
# Use the username and password you just defined for the credentials.
0 commit comments