Problem with settings icinga-notifications

In past days I updated icinga2 system with new icinga-notifications plugin.Most things configured without problems, but currently i have problem with last topic: Create icinga2 source

based on documentation

at the end of page there is suggestion to add:

  1. Open /etc/icingadb/config.yml on the host where Icinga DB is running and add the following lines:
    The full documentation can be found here.

    notifications-source:
      # URL to the API root.
      api-base-url: http://localhost:5680
    
      # Use the username and password you just defined for the credentials.
      username: icingadb
      password: insecureinsecure
    

but after restarting icingadb i got error:

icinga icingadb[68907]: can’t parse YAML file /etc/icingadb/config.yml: [92:1] unknown field “notifications-source”

so what i am doing wrong? can’t find any relevant info , and link to full documentation in mentioned text just point to himself…

thanks for any suggestions / corrections

Peter

you are mixing two different things.

icingadb: backend for monitoring data
notifications (new): the daemon/backend for the new notification module

remove that from /etc/icingadb/config.yml and you should be fine running icingadb since that should not be here:

of course i removed these, but i just followed official documentation

you mixed 2 docs up.

the one for notifications and the one for icingadb

again: this was official documentation for icinga-notification when setting icinga source:

and last step was add this to icingadb config…

I checked again this is there

icinga-notification is still beta and not for production use
it might use features not available it the latest release of icingadb

the docs referencing to icingadb do not describe these changes

These latest documentation seems to be the current working state, not the last release. Unsure if this was intended.

With the upcoming Icinga Notifications and Icinga Notifications Web v0.2.0, the source was moved from Icinga 2’s Event Stream to Icinga DB. Thus, the docs are only valid if you are using the current development version (for the Icinga DB part, you even need a PR branch).

Btw, next week, the new versions will (most likely) be released, and then it should work.

Sorry for the confusing docs and thanks a lot for testing out the new Icinga Notifications project. However, if you are planning on setting up a stable or production environment, maybe don’t try Icinga Notifications yet and use the notifications from Icinga 2 instead.

thanks for info, i know about beta state, just be confused by docs

i tried this because it is (imho) much better and much more logical than old one

1 Like