Commit c8464a2d authored by Jocelyn Delalande's avatar Jocelyn Delalande

munin-node : Allows a host name different from the FQDN

parent d0b510b6
......@@ -49,6 +49,16 @@ munin_server_nodes:
- fqdn: foo.example.com
group: routeurs;cholet
```
… et/ou de leur affecter un nom (qui sera visible dans l'interface) différent de leur FQDN :
```
munin_server_nodes:
- fqdn: test.example.com
name: test
- fqdn: foo.example.com
name: foo
```
*NB: les groupes sont hiérarchiques, dans l'exemple foo.example.com est dans le
......
......@@ -9,6 +9,6 @@ logdir /var/log/munin
rundir /var/run/munin
{% for node in munin_server_nodes %}
[{% if node.group|default(None) %}{{ node.group }};{% endif %}{{ node.fqdn }}]
[{% if node.group|default(None) %}{{ node.group }};{% endif %}{{ node.name|default(node.fqdn) }}]
address {{ lookup('dig', node.fqdn) }}
{% endfor %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment