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
Currently, there are two ways how notifications get communicated between Icinga 2 and Icinga Notifications.
32
+
Please select only one, whereby the first is recommended:
33
+
34
+
* Icinga Notifications can pull those from the Icinga 2 API when being configured in the YAML configuration file.
35
+
For each `source`, as inserted in the database above, an `icinga2-apis` endpoint must be defined.
36
+
* Otherwise, Icinga 2 can push the notifications to the Icinga Notification daemon.
37
+
Therefore, you need to copy the [Icinga 2 config](icinga2.conf) to `/etc/icinga2/features-enabled` on your master node(s) and restart the Icinga 2 service.
38
+
At the top of this file, you will find multiple configurations options that can be set in `/etc/icinga2/constants.conf`.
39
+
There are also Icinga2 `EventCommand` definitions in this file that will automatically match all your **checkables**, which may not work properly if the configuration already uses event commands for something else.
40
+
31
41
Then, you can launch the daemon with the following command.
32
42
```go
33
43
go run ./cmd/icinga-notifications-daemon --config config.yml
34
44
```
35
45
36
-
Last but not least, in order for the daemon to receive events from Icinga 2, you need to copy the [Icinga 2 config](icinga2.conf)
37
-
to `/etc/icinga2/features-enabled` on your master node(s) and restart the Icinga 2 service. At the top of this file,
38
-
you will find multiple configurations options that can be set in `/etc/icinga2/constants.conf`. There are also Icinga2
39
-
`EventCommand` definitions in this file that will automatically match all your **checkables**, which may not work
40
-
properly if the configuration already uses event commands for something else.
41
-
42
46
## License
43
47
44
48
Icinga Notifications is licensed under the terms of the [GNU General Public License Version 2](LICENSE).
0 commit comments