commit
b776df7a12
10
README.md
10
README.md
|
|
@ -47,6 +47,16 @@ A listing of hosts to which munin will connect and monitor. Each item in the lis
|
||||||
|
|
||||||
See documentation for [Munin Node Definitions](http://munin.readthedocs.org/en/latest/reference/munin.conf.html#node-definitions) for more details as to what values to use here.
|
See documentation for [Munin Node Definitions](http://munin.readthedocs.org/en/latest/reference/munin.conf.html#node-definitions) for more details as to what values to use here.
|
||||||
|
|
||||||
|
You can enable mail alerts by adding :
|
||||||
|
|
||||||
|
munin_alerts:
|
||||||
|
- {
|
||||||
|
name: "JohnDoe",
|
||||||
|
email: "johndoe@example.com",
|
||||||
|
subject: "Munin-notification for ${var:group} :: ${var:host}",
|
||||||
|
level: "warning critical"
|
||||||
|
}
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
None.
|
None.
|
||||||
|
|
|
||||||
|
|
@ -34,3 +34,11 @@ munin_hosts:
|
||||||
address: "127.0.0.1",
|
address: "127.0.0.1",
|
||||||
extra: ["use_node_name yes"]
|
extra: ["use_node_name yes"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
munin_alerts: []
|
||||||
|
# - {
|
||||||
|
# name: "JohnDoe",
|
||||||
|
# email: "johndoe@example.com",
|
||||||
|
# subject: "Munin-notification for ${var:group} :: ${var:host}",
|
||||||
|
# level: "warning critical"
|
||||||
|
# }
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,15 @@ max_processes {{ munin_max_processes }}
|
||||||
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
|
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
|
||||||
#contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
|
#contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
|
||||||
#contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
|
#contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
|
||||||
|
|
||||||
|
{% if munin_alerts %}
|
||||||
|
{% for contact in munin_alerts %}
|
||||||
|
contacts {{ contact.name }}
|
||||||
|
contact.{{ contact.name }}.command mail -s "{{ contact.subject }}" {{ contact.email }}
|
||||||
|
contact.{{ contact.name }}.always_send {{ contact.level }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
#
|
#
|
||||||
# For those with Nagios, the following might come in handy. In addition,
|
# For those with Nagios, the following might come in handy. In addition,
|
||||||
# the services must be defined in the Nagios server as well.
|
# the services must be defined in the Nagios server as well.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue