diff --git a/templates/iptables.conf.j2 b/templates/iptables.conf.j2
index 275617c3ff9f4c7299c4630ae2a8b3f4e41cc036..913cbea71da92f5386fd09679336b64fcbb6262f 100644
--- a/templates/iptables.conf.j2
+++ b/templates/iptables.conf.j2
@@ -105,7 +105,7 @@
 # IMAP
 -A OUTPUT -p tcp -m tcp --dport 993 -j ACCEPT
 {% endif %}
-{% if inventory_hostname in groups.nagios %}
+{% if inventory_hostname in groups.nagios_server %}
 # NRPE
 -A OUTPUT -p tcp -m tcp --dport 5666 -j ACCEPT
 {% endif %}