[nagios] try ang get groups working

This commit is contained in:
Stephen Smoogen 2019-05-23 23:34:41 +00:00
parent af3def70a1
commit b2599f8d2f
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
define service { define service {
hostgroup_name smtp-mm hostgroup_name smtp_mm
service_description smtp-mm service_description smtp-mm
check_command check_smtp check_command check_smtp
use defaulttemplate use defaulttemplate

View file

@ -6,7 +6,7 @@ define hostgroup {
} }
define hostgroup { define hostgroup {
hostgroup_name smtp-mm hostgroup_name smtp_mm
alias SMTP MailMan Servers 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 %} members {% for host in groups["smtp_mm"]|sort %} {{ hostvars[host]["inventory_hostname_short"] }}.fedoraproject.org {% if not loop.last %}, {% endif %} {% endfor %}