object Service “http” {
import “generic-service”
host_name = “(website)”
check_command = “http”
vars.http_uri="(website page)"
vars.downtime=“01:00-05:00”
vars.NotifyLevel=“Business”
}
Beginning around 2am the above service goes down as expected, yet Icinga continues to notify me via email. Normally a downed item would send me a text message as well as an email notification but the downtime above at least prevents the text message. Tried digging in a bit with this Advanced topic/help page here, but I don’t necessarily need to set a fancier downtime, rather just have the notifications respect the existing time frame above.
Thanks for the replies, I’m good to go! Blake’s question referring me towards downtime.conf explained the issue. Since any service-downtime referred back to any downtime set for a host object, my service downtime was never going to work! Seemingly simple but as somebody who is coming into an environment where Icinga is already setup and I’m learning on the job, both Blake’s and log1c’s posts were quite helpful.