Switch nrpe firewalling to store/collect
[mirror/dsa-puppet.git] / modules / nagios / manifests / server.pp
index dbd47f9..fc222ae 100644 (file)
@@ -145,4 +145,12 @@ class nagios::server {
     port        => 'domain',
     saddr       => $base::public_addresses,
   }
+
+  # The nagios server wants to connect to the NRPE server on all the hosts
+  @@ferm::rule::simple { "dsa-nrpe-from-${::fqdn}":
+    tag         => 'nagios-nrpe::server',
+    description => 'Allow nagios master access to the nrpe daemon',
+    port        => '5666',
+    saddr       => $base::public_addresses,
+  }
 }