Hello, I am trying to adjust one service so it only checks and notifies once per week. I want the other services to continue to check as per regular schedule, I only want one service to check weekly.
The host is importing “generic-host”. Most of the OS’s is Debian based and I am only overloading the family variable in cases where its RHEL/Centos or BSD.
Can you explain why you think that it is not working, or even better show it (with a screenshot maybe?)
Maybe also show the config of one of the hosts.
Host and service check intervals are two different pairs of shoes. They don’t influence each other.
Ok, so you have set the check interval for the service to one week.
Does this work correctly? What is the next check date in the icinga web interface?
Then you are talking about notifications.
The notification interval is a “third pair of shoes” It has nothing to does with neither the host check interval nor the service check interval.
So you will have to create a dedicated time period for the notifications and assign this time period to the notification rule.
Check: https://icinga.com/docs/icinga2/latest/doc/09-object-types/#timeperiod
So the check interval is working correct.
You will now have to figure out how to handle notifications.
You can put a delay on the notification, to delay the delivery.
Or you can define a dedicated time period for sending the notifications, add this time period to a notification template and then create a notification rule with the template.
Check the docs for the time period configuration (see link in my last post)
Hello, I did some more work on it and created a special service check as well as notification for apt service so it only notifies on one day. its still seems to be sending out all day long notifications.
do i need to specifically create an ignore statement for the server because its also being included in the global service checks still? below is my code.
Hello, I did some more work on it and created a special service check as
well as notification for apt service so it only notifies on one day. its
still seems to be sending out all day long notifications.
Try adding “interval = 0” to the following stanza: