Icinga2 is sending out notifications in the middle of the night for
one of the services, despite that the period is set to daytime hours.
I don't know why this is happening, I need some help getting it to
work properly, we have it routing to VictorOps and it's unnecessarily
waking up the engineers.

I used the API to grab the Notification object:

{"attrs":{"__name":"ec2-x-x-x.compute-1.amazonaws.com us-east-1d!nrpe
check_location_insight_manager_tick_rate!notify
victorops","active":true,"command":"victorops-svc-notification","command_endpoint":"","ha_mode":0.0,"host_name":"ec2-x-x-x.compute-1.amazonaws.com
us-east-1d","interval":0.0,"last_notification":1488950513.8099620342,"last_problem_notification":1488949615.5428359509,"name":"notify
victorops","next_notification":1488987119.8951699734,"no_more_notifications":false,"notification_number":0.0,"notified_users":["atlantic"],"original_attributes":null,"package":"_etc","paused":false,"period":"9to10","service_name":"nrpe
check_location_insight_manager_tick_rate","states":null,"templates":["notify
victorops"],"times":null,"type":"Notification","types":null,
"user_groups":null,"users":["atlantic"],"vars":null,"version":0.0,"zone":""},"join
s":{},"meta":{},"name":"ec2-x-x-x.compute-1.amazonaws.com us-east-1d!nrpe
 check_location_insight_manager_tick_rate!notify
victorops","type":"Notification"}
,

and the Timeperiod object:

{"attrs":{"__name":"9to10","active":true,"display_name":"Icinga 2
9to10 
TimePeriod","excludes":[],"ha_mode":0.0,"includes":[],"is_inside":false,"name":"9to10","original_attributes":null,"package":"_etc","paused":false,"prefer_includes":true,"ranges":{"friday":"12:00-24:00,00:00-01:00","monday":"12:00-24:00,00:00-01:00","thursday":"12:00-24:00,00:00-01:00","tuesday":"12:00-24:00,00:00-01:00","wednesday":"12:00-24:00,00:00-01:00"},"segments":[
{"begin":1489078800.0,"end":1489122000.0},{"begin":1488992400.0,"end":1489039200.0
}],"templates":["9to10","legacy-timeperiod"],"type":"TimePeriod","update":{"type":
"Function"},"valid_begin":1488984089.2413868904,"valid_end":1489122000.0,"vars":null,"version":0.0,"zone":""},"joins":{},"meta":{},"name":"9to10","type":"TimePeriod"}

As best I can tell, these are configured properly, but Icinga is
ignoring the time period and still sending out notifications. Any
thoughts?

-- 
---
Michael Martinez
http://www.michael--martinez.com
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to