Page 1 of 1

Where to check notification intervals...mine are weird

Posted: Sun Dec 22, 2019 12:36 am
by jkj2000
I've set up the 'admin' contact with an email address, and we have several services that error out on ping checks, however we only get emails at 1 am, 3 am, 5 am and 7 am local time. I can't figure out why.

This is a typical service check for us:

Code: Select all

define service {
	host_name		       logstash
	service_description	     PING
	check_command		   check_ping!100.0,20%!500.0,60%
	max_check_attempts	      2
	check_interval		  2
	retry_interval		  2
	check_period		    24x7
	check_freshness		 1
	contact_groups		  admins
	notification_interval	   2
	notification_period	     24x7
	notifications_enabled	   1
	register			1
}
All our services have those same check_interval, notification_interval and notification period settings. Based on them, shouldn't I be getting alerts every two minutes or so (not that I want them, mind you)? Is there a setting or settings I should be looking at in nagios.cfg that might explain things? I do know our interval_length value in nagios.cfg is the standard '60', so no funny business there.

Re: Where to check notification intervals...mine are weird

Posted: Mon Dec 23, 2019 8:45 am
by scottwilkerson
Can you look at the definition for the timeperiod 24x7 which is set as the notification period to make sure it wasn't modified.

Also, by chance is there any escalations set on the server that could be overriding the default notifications?

Re: Where to check notification intervals...mine are weird

Posted: Mon Dec 23, 2019 4:09 pm
by jkj2000
Thanks Scott, I'll investigate both those possibilities.

Re: Where to check notification intervals...mine are weird

Posted: Mon Dec 23, 2019 4:15 pm
by scottwilkerson
jkj2000 wrote:Thanks Scott, I'll investigate both those possibilities.
Sounds good