1 title: Check_MK site objects
7 This check collects information about the amount of different
8 host types or used check commands of Check_MK sites.
10 To make this check work please install the {{mk_site_object_counts}}
11 agent plugin and specify host tags or check commands within the
12 {{site_object_counts.cfg}} configration file. The following options
15 - {TAGS}: global host tags
17 - {SERVICE_CHECK_COMMANDS}: global check commands
19 - {SITES}: restriction to specified sites
21 - {TAGS_$SITENAME}: site specific host tags
23 - {SERVICE_CHECK_COMMANDS_$SITENAME}: site specific check commands
26 The agent plugin is executed if and only if OMD is installed and there's
27 a configuration file. Sites which provide an opened Livestatus socket
28 {/omd/sites/$SITENAME/tmp/run/live} are taken into account.
30 Without the restrictive option {SITES} all sites on that server are
31 considered which satisfy above conditions.
33 If more than one value is assigned they have to be separated by one space, eg.
37 - {SERVICE_CHECK_COMMANDS_sitename=kernel lnx_if}
44 {SERVICE_CHECK_COMMANDS=if}
46 With this configuration the agent plugin returns the amount of all SNMP hosts
47 and the amount of all interface services of the type {if} of all sites.
56 {SERVICE_CHECK_COMMANDS=if}
58 With this configuration the agent plugin returns the amount of all SNMP hosts
59 and the amount of all interface services of the type {if} of the sites
60 {site_a} and {site_b}.
67 {SERVICE_CHECK_COMMANDS_site_a=if}
71 {SERVICE_CHECK_COMMANDS_site_b=lnx_if}
73 With this configuration the agent plugin returns
75 - the amount of all SNMP hosts and the amount of all interface services
76 of the type {if} of the site {site_a} and
78 - the amount of all agent-based hosts and the amount of all Linux interface
79 services of the type {lnx_if} of the site {site_b}.
86 {SERVICE_CHECK_COMMANDS=omd_apache omd_status}
90 {SERVICE_CHECK_COMMANDS_site_a=if}
94 {SERVICE_CHECK_COMMANDS_site_b=lnx_if}
96 With this configuration the agent plugin returns
98 - the amount of all productive hosts and services of type {omd_apache} and
99 {omd_status} of all sites.
101 - additionaly the amount of all SNMP hosts and the amount of all interface
102 services of the type {if} of the site {site_a} and
104 - additionaly the amount of all agent-based hosts and the amount of all
105 Linux interface services of the type {lnx_if} of the site {site_b}.
110 {SITES=site_a site_b site_c}
114 {SERVICE_CHECK_COMMANDS=omd_apache omd_status}
118 {SERVICE_CHECK_COMMANDS_site_a=if}
122 {SERVICE_CHECK_COMMANDS_site_b=lnx_if}
124 With this configuration the agent plugin returns
126 - the amount of all productive hosts and services of type {omd_apache} and
127 {omd_status} of the sites {site_a}, {site_b} and {site_c}.
129 - additionaly the amount of all SNMP hosts and the amount of all interface
130 services of the type {if} of the site {site_a} and
132 - additionaly the amount of all agent-based hosts and the amount of all
133 Linux interface services of the type {lnx_if} of the site {site_b}.
135 The check is cluster-aware and the check state is always OK.
138 One service is created.