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

Latest commit

 

History

History
37 lines (22 loc) · 731 Bytes

File metadata and controls

37 lines (22 loc) · 731 Bytes

Icinga2 - Hostgroups

add a hostgroup

add_hostgroup( params )

Example

@icinga.add_hostgroup(host_group: 'foo', display_name: 'FOO')

delete a hostgroup

delete_hostgroup( params )

Example

@icinga.delete_hostgroup(host_group: 'foo')

list hostgroups

list named hostgroup

hostgroups( params )

Example

@icinga.hostgroups(host_group: 'linux-servers')

list all hostgroups

hostgroups

Example

@icinga.hostgroups

check if the hostgroup exists

exists_hostgroup?( hostgroup )

Example

@icinga.exists_hostgroup?('linux-servers')