icingaweb2
icingaweb2 copied to clipboard
Info about deactivated notifications disappeared
Describe the bug
If you disable the Notifications item in Icinga Web2 under Settings -> System -> State -> Icinga, then at least since version r2.13.4-1 you don't get any info about notifications being centrally disabled. In version r2.12.1-1 it definitely still worked. (See screenshots for details).
To Reproduce
- Open https://ICINGASERVER/health#!/monitoring/health/info in your webbrowser
- disable notifications
Expected behavior
There should be a clear information that the notification is disabled
Screenshots
New version without disabled notification:
Old version with disabled notification and the behaviour which I am missing:
Your Environment
- Icinga Web 2 version and modules (System - About): 2.11.1
- Web browser used: Chrome
- Icinga 2 version used: r2.13.4-1
- PHP version used (
php --version
): 7.3.31-1~deb10u1 - Server operating system and version: Debian 10
Yeah, that indicator got lost with #4651. The easiest and most-fitting solution now would probably be to extend Icinga\Module\Monitoring\ProvidedHook\Health
to also provide statuses the Icinga\Module\Monitoring\Web\Navigation\Renderer\BackendAvailabilityNavigationItemRenderer
has.