blob: b1de66b50b096ccc2e17e3f5189dd4916a2a4e4d [file] [log] [blame]
{%- from "linux/map.jinja" import network with context -%}
{%- from "glusterfs/map.jinja" import server with context -%}
{%- if pillar.glusterfs.server is defined %}
check:
{%- for volume_name, volume in server.get('volumes', {}).iteritems() %}
local_glusterfs_status_{{ volume_name }}_{{ network.fqdn }}:
command: "PATH=$PATH:/etc/sensu/plugins check_glusterfs -v {{ volume_name }} -n {{ volume.bricks|length }} -w 5 -c 1"
interval: 60
occurrences: 1
subscribers:
- local-glusterfs-server
{%- endfor %}
{%- endif %}