[nagios] try ang get groups working
This commit is contained in:
parent
af3def70a1
commit
b2599f8d2f
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
define service {
|
||||
hostgroup_name smtp-mm
|
||||
hostgroup_name smtp_mm
|
||||
service_description smtp-mm
|
||||
check_command check_smtp
|
||||
use defaulttemplate
|
||||
|
|
|
@ -6,7 +6,7 @@ define hostgroup {
|
|||
}
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name smtp-mm
|
||||
hostgroup_name smtp_mm
|
||||
alias SMTP MailMan Servers
|
||||
members {% for host in groups["smtp_mm"]|sort %} {{ hostvars[host]["inventory_hostname_short"] }}.fedoraproject.org {% if not loop.last %}, {% endif %} {% endfor %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue