Skip to content

Commit

Permalink
Merge c2600ca into a4ed783
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Nov 28, 2017
2 parents a4ed783 + c2600ca commit de12e2d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions alignak/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,16 +581,16 @@ def add_check(self, check):
logger.debug("Already existing check: %s", check)
return

# Add a new check to the scheduler checks list
self.checks[check.uuid] = check

self.nb_checks += 1

# A new check means the host/service changes its next_check
# need to be refreshed
# TODO swich to uuid. Not working for simple id are we 1,2,3.. in host and services
# Commented to fix #789
brok = self.find_item_by_id(check.ref).get_next_schedule_brok()
self.add(brok)
# Raise a brok to inform about a next check is to come ...
# but only for items that are actively checked
item = self.find_item_by_id(check.ref)
if item.active_checks_enabled:
brok = item.get_next_schedule_brok()
self.add(brok)

def add_eventhandler(self, action):
"""Add a event handler into actions list
Expand Down

0 comments on commit de12e2d

Please sign in to comment.