Merge pull request #798 from vaupelt/patch-1
strange results with services=all agreed, the doc issues are unrelated to this PR, will fix those independently
This commit is contained in:
commit
5017c4483a
1 changed files with 4 additions and 0 deletions
|
@ -913,6 +913,8 @@ class Nagios(object):
|
|||
elif self.action == 'enable_alerts':
|
||||
if self.services == 'host':
|
||||
self.enable_host_notifications(self.host)
|
||||
elif self.services == 'all':
|
||||
self.enable_host_svc_notifications(self.host)
|
||||
else:
|
||||
self.enable_svc_notifications(self.host,
|
||||
services=self.services)
|
||||
|
@ -920,6 +922,8 @@ class Nagios(object):
|
|||
elif self.action == 'disable_alerts':
|
||||
if self.services == 'host':
|
||||
self.disable_host_notifications(self.host)
|
||||
elif self.services == 'all':
|
||||
self.disable_host_svc_notifications(self.host)
|
||||
else:
|
||||
self.disable_svc_notifications(self.host,
|
||||
services=self.services)
|
||||
|
|
Loading…
Reference in a new issue