Page 1 of 1

Delay Notifications

Posted: Thu Sep 06, 2018 9:56 am
by alex3105
I ask for support to configure the notifications (they already work by postfix to Exchange), what I want to configure is to be notified when my communications equipment is turned off or the service recovers, if possible, the event occurs, besides that when some services fail for example lack of energy.

I see that the contacts, host and service are configured, the notification options are configured but now the notification is delayed after the event has occurred.

define host{
use windows-server ; The name of this host template
host_name winserver ;
alias My Windows Server ;
address 192.168.32.25 ;
check_period 24x7 ; By default, Windows servers are monitored round the clock
max_check_attempts 2 ; Check each server 10 times (max)
check_interval 4 ; Actively check the server every 5 minutes
check_command check-host-alive ; Default command to check if servers are "alive"
retry_interval 1 ; Schedule host check retries at 1 minute intervals
notification_enabled 1 ; Send notification out at any time - day or night
notification_period 24x7 ; Send notification out at any time - day or night
notification_options d,u,r,s ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default

}

Re: Delay Notifications

Posted: Thu Sep 06, 2018 11:15 am
by scottwilkerson
When you say it is delayed, by how long?

Can you share the definition for the windows-server template in addition to any templates it may contain?

Re: Delay Notifications

Posted: Thu Sep 06, 2018 1:41 pm
by alex3105
With the current configuration when the equipment is online the notification arrives at the minute and that seems fine, but when the equipment goes off it takes 7 minutes to get the respective notification ... you could indicate the configuration to correct the delay time when communication with my team is lost.

Re: Delay Notifications

Posted: Thu Sep 06, 2018 3:22 pm
by scottwilkerson
alex3105 wrote:but when the equipment goes off it takes 7 minutes to get the respective notification ...
well you are checking things every 4 minutes, and then have max_check_attempts set to 2 that bumps it up to 6 minutes possibly before the first notification would go out.

Re: Delay Notifications

Posted: Fri Sep 07, 2018 10:19 am
by alex3105
Finally, after several tests I think I have managed to configure my client team verifying that when the communication is lost, the notification arrives on average at 3 minutes, and when it returns online it arrives at 2 minutes.

max_check_attempts 1
check_interval 2
retry_interval 1

Re: Delay Notifications

Posted: Fri Sep 07, 2018 11:07 am
by scottwilkerson
alex3105 wrote:Finally, after several tests I think I have managed to configure my client team verifying that when the communication is lost, the notification arrives on average at 3 minutes, and when it returns online it arrives at 2 minutes.

max_check_attempts 1
check_interval 2
retry_interval 1
That sounds correct