Icinga2 notifies me even though there is downtime and I am not in the group

Hello,

We have a host that goes offline every night from 02:30 until 02:40. So it sends me an SMS message and wakes me and my wife up, every single day. I have tried remedying this problem by creating a different notification and also by specifying the downtime but no matter what I do, I fail every single time.

This is the host configuration

Object Host "server" {
                import "generic-host"
                address = "10.1.150.2"
                vars.os = "Windows"
                vars.backup_downtime = "02:30-02:40"
                vars.sla = "24x7x9"
        } 

This is “24x7x9” being defined.

apply Notification "justsupport" to Host {
  import "mail-host-notification"
  user_groups = [ "support" ]
  assign where host.vars.sla == "24x7x9"
}

My phone number is tied into my user and is a member of the icingaadmins group

Does anyone know why the service PING keeps notifying me even though i’ve defined that the host shouldn’t ever notify me and also specified that the host goes offline from 02:30 to 02:40 every single day?

Hello,

We have a host that goes offline every night from 02:30 until 02:40. So it
sends me an SMS message and wakes me and my wife up, every single day. I
have tried remedying this problem by creating a different notification and
also by specifying the downtime but no matter what I do, I fail every
single time.

This is the host configuration

Object Host "server" {
                import "generic-host"
                address = "10.1.150.2"
                vars.os = "Windows"
                vars.backup_downtime = "02:30-02:40"

Can you show us where you are using this variable to select whether or not to
send out notifications?

                vars.sla = "24x7x9"
        }

This is “24x7x9” being defined.

Out of interest, what is the significance of 9 weeks?

apply Notification "justsupport" to Host {
  import "mail-host-notification"
  user_groups = [ "support" ]
  assign where host.vars.sla == "24x7x9"
}

My phone number is tied into my user and is a member of the icingaadmins
group

Are you a member of the “support” group?

Does anyone know why the service PING keeps notifying me even though i’ve
defined that the host shouldn’t ever notify me

Where have you defined that?

and also specified that the host goes offline from 02:30 to 02:40 every single
day?

What is using the information in backup_downtime to avoid sending notifications
then?

Also, what time do you receive the notifications? It is definitely within 02:30
to 02:40, or is it perhaps just after 02:40?

Antony.

Hi,

I can’t figure out how to reply with quote so I apologize if this is hard to understand.

“24x7x9” is just what the variable is called, it doesn’t have any actual real world meaning.

I don’t expect that I would receive service notifications for this host because I have configured the host to not notify me. Doesn’t the host override the individual services on the host?

I don’t believe it does, no. You will need an apply Notification "justsupport" to Service defined as well. Host != Service.

@bmf614
please show the configuration of the users/groups that are being /should (not) be notified.
Also please show the config of the notification template.

Being notified for the service “ping” indicates that you have more notification apply rules implemented. Maybe just the ones from the sample configuration und /etc/icinga2/conf.d.
Keep in mind that a host object is something different from a service object (which “belongs” to a host object). A host object typically is check by a ping/icmp check, making a separate service check with a ping command obsolete (imo).