1
2
3
4
5
6
7
8
9
10
11
12
|
#---------------------------------------------------
# This file is Juju managed
#---------------------------------------------------
{% set reldata = relations['conn-check'][0] %}
{% set nrpedata = relations['nrpe-external-master'][0] %}
define service {
use active-service
host_name {{ nrpedata.nagios_host_context }}-{{ reldata.__unit__.replace('/', '-') }}
service_description connection checks with conn-check
check_command check_nrpe!conn_check
servicegroups {{ reldata.nagios_servicegroups|default(nrpedata.nagios_host_context) }}
}
|