Allow user defined variables in munin.conf

This commit is contained in:
Dex Bleeker 2016-10-13 23:48:10 +02:00
parent d6e4c324b0
commit 4fdb59c2fb
2 changed files with 7 additions and 0 deletions

View File

@ -33,3 +33,7 @@
{{ print_directive(directive, value) }} {{ print_directive(directive, value) }}
{%- endfor %} {%- endfor %}
{% endfor %} {% endfor %}
{%- if config.get('formula_append') %}
{{ config.formula_append }}
{% endif %}

View File

@ -19,6 +19,9 @@ munin_master:
"localhost.localdomain": "localhost.localdomain":
address: "127.0.0.1" address: "127.0.0.1"
use_node_name: "no" use_node_name: "no"
# In case you need additional variables
formula_append |
some_variable value
munin_node: munin_node:
log_level: 4 log_level: 4