123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- {% if ansible_prolog -%}
- {% from 'templates/ansible/prolog.j2' import prolog with context %}
- {{ prolog() }}
- {% endif -%}
- includedir /etc/munin/munin-conf.d
- contacts root
- contact.root.command mail -s 'MUNIN – [${var:host}] ~ ${var:graph_title}' root
- contact.root.always_send warning critical
- {% if munin_nodes is defined %}
- {% for node in munin_nodes %}
- [{{ node.node }}]
- {% if node.address is defined %}
- address {{ node.address }}
- {% else %}
- address {{ node.node }}
- {% endif %}
- use_node_name yes
- {% if node.port is defined %}
- port {{ node.port }}
- {% endif %}
- {% if munin_load_warning is defined %}
- load.load.warning {{ munin_load_warning }}
- {% endif %}
- {% if munin_load_critical is defined %}
- load.load.critical {{ munin_load_critical }}
- {% endif %}
- {% if munin_swap_warning is defined %}
- memory.swap.warning {{ munin_swap_warning }}
- {% endif %}
- {% if munin_swap_critical is defined %}
- memory.swap.critical {{ munin_swap_critical }}
- {% endif %}
- {% if munin_postfix_mailqueue_warning is defined %}
- postfix_mailqueue.deferred.warning {{ munin_postfix_mailqueue_warning }}
- {% endif %}
- {% if munin_postfix_mailqueue_critical is defined %}
- postfix_mailqueue.deferred.critical {{ munin_postfix_mailqueue_critical }}
- {% endif %}
- {% endfor %}
- {% endif %}
|