Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Files

Latest commit

 

History

History
60 lines (35 loc) · 1.53 KB

notifications.md

File metadata and controls

60 lines (35 loc) · 1.53 KB

Icinga2 - Notifications

enable host notifications

enable_host_notification( host )

Example

@icinga.enable_host_notification('icinga')

disable host notifications

disable_host_notification( host )

Example

@icinga.disable_host_notification('icinga')

enable service notifications

enable_service_notification( host )

Example

@icinga.enable_service_notification('icinga')

disable service notifications

disable_service_notification( host )

Example

@icinga.disable_service_notification('icinga')

enable hostgroup notifications

enable_hostgroup_notification( params )

Example

@icinga.enable_hostgroup_notification(host: 'icinga2', host_group: 'linux-servers')

disable hostgroup notifications

disable_hostgroup_notification( params )

Example

@icinga.disable_hostgroup_notification(host: 'icinga2', host_group: 'linux-servers')

list all notifications

notifications

Example

@icinga.notifications

(protected) function for host notifications

host_notification( params = {} )

(protected) function for hostgroup notifications

hostgroup_notification( params = {} )

(protected) function for service notifications

service_notification( params = {} )