It’s me again,
now, I never had a problem with Notifications even if its a bit tricky to set up.
I have recently installed a different Icinga Instance with Distributed Monitoring running. (currently 1 Satellite).
Everything is working as it should, but now when I apply a Notification Rule the config validation in the Icinga Director Deployment doesn’t work.
[2022-07-26 09:36:48 +0200] information/cli: Icinga application loader (version: r2.13.3-1)
[2022-07-26 09:36:48 +0200] information/cli: Loading configuration file(s).
[2022-07-26 09:36:48 +0200] information/ConfigItem: Committing config item(s).
[2022-07-26 09:36:48 +0200] information/ApiListener: My API identity: Icinga
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'mx10-32-60-177!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'bkwend!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'FEIG Terminal Sanitär!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'Fridge 1!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'MX-BR304-65884!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'mx10-32-58-208!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'FEIG Terminal Fridge 2!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'Touch-Panel 2 / Ausgabe!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'FEIG Terminal Fridge 1!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'Fridge 2!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'Server Hausautomatisation!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'mx10-32-108-205!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'bk-0001!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'Coffeebar Eversys Cameo!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'mx10-32-57-185!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'Touch-Panel 1 / Tür!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: Error: Validation failed for object 'FEIG Terminal Coffeebar!Host Notifications' of type 'Notification'; Attribute 'command': Object 'mail-host-notification' of type 'NotificationCommand' does not exist.
Location: in [stage]/zones.d/bkwend/notification_templates.conf: 2:5-2:38
[stage]/zones.d/bkwend/notification_templates.conf(1): template Notification "Host Notification Template - Email" {
[stage]/zones.d/bkwend/notification_templates.conf(2): command = "mail-host-notification"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/bkwend/notification_templates.conf(3): interval = 0s
[stage]/zones.d/bkwend/notification_templates.conf(4): period = "always"
[2022-07-26 09:36:48 +0200] critical/config: 17 errors
[2022-07-26 09:36:48 +0200] critical/cli: Config validation failed. Re-run with 'icinga2 daemon -C' after fixing the config.
Now it clearly says “Object ‘mail-host-notification’ of type ‘NotificationCommand’ does not exist”.
Which is kinda wierd because on both Master and Staellite the Command exists and so does the script in /etc/icinga2/scripts/
What’s also wierd, on both Master and Satellite the icinga2 daemon -C
returns a succesful config validation.
Also the notifcation feature is enabled on both…
Am I missing something?
Kind regards,
Gabriel
- Director version (System - About): 1.9.1
- Icinga Web 2 version and modules (System - About): 2.10.1
- Icinga 2 version (
icinga2 --version
): r2.13.3-1 - Operating System and version: Debian 11 LTS
- Webserver, PHP versions: PHP 2.4.46, 7.4.28