9
# This file is managed by Juju. Do not make local changes.
11
{% macro servicegroup(default='juju') -%}
12
{%- if config['nagios_servicegroups'] -%}
13
{{ config['nagios_servicegroups'] }}
14
{%- elif config['nagios_context'] -%}
15
{{ config['nagios_context'] }}
21
{% for rel in nrpe_external_master -%}
24
host_name {{rel.nagios_hostname}}
25
service_description {{rel.nagios_hostname}}[wordpress_http] Check Wordpress HTTP
26
check_command check_nrpe!check_wordpress_http
27
servicegroups {{ servicegroup() }}
30
{% if config['ssl_enabled'] -%}
33
host_name {{rel.nagios_hostname}}
34
service_description {{rel.nagios_hostname}}[wordpress_https] Check Wordpress HTTPS
35
check_command check_nrpe!check_wordpress_https
36
servicegroups {{ servicegroup() }}
39
{% for plugin in wordpress_plugin %}
42
host_name {{rel.nagios_hostname}}
43
service_description {{rel.nagios_hostname}}[{{plugin['plugin_name']|replace('-','_')}}] Check {{plugin['plugin_name']}} Wordpress Plug-In
44
check_command check_nrpe!check_{{plugin['plugin_name']|replace('-','_')}}
45
servicegroups {{ servicegroup() }}