summaryrefslogtreecommitdiff
path: root/manifests/service/dns_host.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/service/dns_host.pp')
-rw-r--r--manifests/service/dns_host.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/service/dns_host.pp b/manifests/service/dns_host.pp
new file mode 100644
index 0000000..d88f373
--- /dev/null
+++ b/manifests/service/dns_host.pp
@@ -0,0 +1,22 @@
+# add a special host and monitor
+# it's dns service
+define nagios::service::dns_host(
+ $check_domain,
+ $host_alias,
+ $parent,
+ $ip
+){
+ @@nagios_host{$name:
+ address => $ip,
+ alias => $host_alias,
+ use => 'generic-host',
+ parents => $parent,
+ }
+
+ nagios::service::dns{$name:
+ host_name => $name,
+ comment => 'public_ns',
+ check_domain => $check_domain,
+ ip => $ip,
+ }
+}