Now it’s time to add some host, service and contact groups to our check_mk config. You can configure those either within main.mk or using the normal Nagios / Icinga configuration.
I’ll use the configuration in main.mk for the following examples. To create groups you can use tags so mark
a specific host as member of a specific group. You can either manually create the groups or let check_mk take care of defining the groups.
define_hostgroups = True
define_servicegroups = True
define_contactgroups = True
host_groups = [
( 'NET', [ 'NET' ], ALL_HOSTS ),
( 'WEB', [ 'WEB' ], ALL_HOSTS ),
( 'INTERNAL', [ 'INTERNAL' ], ALL_HOSTS ),
]
host_contactgroups = [
( 'NET', [ 'NET' ], ALL_HOSTS ),
( 'WEB', [ 'WEB' ], ALL_HOSTS ),
( 'INTERNAL', [ 'INTERNAL' ], ALL_HOSTS ),
]
service_contactgroups = [
( 'NET', [ 'NET' ], ALL_HOSTS ),
( 'WEB', [ 'WEB' ], ALL_HOSTS ),
( 'INTERNAL', [ 'INTERNAL' ], ALL_HOSTS ),
]