Delay Notifications

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Delay Notifications

Post 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

}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Delay Notifications

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Delay Notifications

Post 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.
Attachments
contacts.cfg
(2.12 KiB) Downloaded 194 times
windows.cfg
(4.38 KiB) Downloaded 190 times
templates.cfg
(12.83 KiB) Downloaded 169 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Delay Notifications

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Delay Notifications

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Delay Notifications

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked