Hi everyone!
I try to send a recovery notification when a host recovers from a problem without sending a problem beforehand.
As far as I understand this should work following the documentation.
https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/#notifications
Only users who have been notified of a problem before (`Warning`, `Critical`, `Unknown` states for services, `Down` for hosts) will receive `Recovery` notifications.
Icinga 2 v2.10 allows you to configure `Acknowledgement` and/or `Recovery` without a `Problem` notification. These notifications will be sent without any problem notifications beforehand, and can be used for e.g. ticket systems.
This works fine but also reports problems:
template Notification "host-recovery-notification" {
states = [ Up, Down ]
types = [ Problem, Recovery ]
period = "24x7"
interval = 0
}
This is what I need but doesn`t work
template Notification "host-recovery-notification" {
states = [ Up, Down ]
types = [ Recovery ]
period = "24x7"
interval = 0
}
Is there a problem with the version v2.10 vs r2.13 or do I misconceive something here?
Thank you for your help
Andi
System information:
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.1-1)
- Platform: Ubuntu*
- Platform version: 20.04.3 LTS (Focal Fossa)*
- Kernel: Linux*
- Kernel version: 5.4.0-88-generic*
- Architecture: x86_64*
Build information:
- Compiler: GNU 9.3.0*
- Build host: runner-hh8q3bz2-project-508-concurrent-0*
- OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020*
Enabled features: api checker ido-mysql mainlog notification