Hi!
First of all, thats my first post so pardon if i’m not at the rigth category or there are missing informations…
My environment:
- Version used (
icinga2 --version
)
version: 2.13.2-1 - Operating System and version
openSUSE Leap 15.3 - Enabled features (
icinga2 feature list
)
Enabled features: api checker command ido-pgsql influxdb2 mainlog notification - Icinga Web 2 version and modules (System - About)
Icinga Web 2 Version 2.9.4
Git commit d208d1ccfef86606984739e6357138c459146134
PHP Version 7.4.6
Git commit date 2021-11-10 - Config validation (
icinga2 daemon -C
)
[2021-12-28 17:07:07 -0300] information/cli: Finished validating the configuration file(s).
I have a TimePeriod being imported in a Notification, the notification was done this way:
# Custom notification because of backup and disk health check routine
apply Notification "dummy-mail-service-sd-dummy-client-backup-nas" to Service {
import "mail-service-notification"
states = [ Critical ]
types = [ Problem ]
users = [ "dummy.service.desk" ]
period = "dummy-nas-timeperiod"
assign where (host.vars.notification.mail && host.name == "nas-01.local.domain" && (service.name == "linux-snmp-cpu" || service.name == "linux-snmp-load"))
}
We end up changing the assign rule for better ‘visualization’ and to simplify the way we ‘read’ the rule itself… the new rule is:
assign where (host.vars.notification.mail && host.name == "nas-01.local.domain" && service.name in [ "linux-snmp-cpu", "linux-snmp-load" ])
The problems is, the new rule won’t work and i was’nt able the figure out way… is there any mistake or any other thing i’m not seing here?
Thanks!