blob: 4741ad08047097ac8122ef096f44f52f4b533fbe [file] [log] [blame]
{%- if pillar.heka.get('log_collector', {}).get('enabled', False) or
pillar.heka.get('metric_collector', {}).get('enabled', False) or
pillar.heka.get('remote_collector', {}).get('enabled', False) or
pillar.heka.get('aggregator', {}).get('enabled', False) %}
check:
{%- if pillar.heka.get('log_collector', {}).get('enabled', False) %}
local_heka_log_collector_proc:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C hekad -a log_collector -u heka -c 1:1"
interval: 60
occurences: 1
subscribers:
- local-heka-log_collector
{%- endif %}
{%- if pillar.heka.get('metric_collector', {}).get('enabled', False) %}
local_heka_metric_collector_proc:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C hekad -a metric_collector -u heka -c 1:1"
interval: 60
occurences: 1
subscribers:
- local-heka-metric_collector
{%- endif %}
{%- if pillar.heka.get('remote_collector', {}).get('enabled', False) %}
local_heka_remote_collector_proc:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C hekad -a remote_collector -u heka -c 0:1"
interval: 60
occurences: 1
subscribers:
- local-heka-remote_collector
{%- endif %}
{%- if pillar.heka.get('aggregator', {}).get('enabled', False) %}
local_heka_aggregator_proc:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C hekad -a aggregator -u heka -c 0:1"
interval: 60
occurences: 1
subscribers:
- local-heka-aggregator
{%- endif %}
{%- endif %}