summaryrefslogtreecommitdiffstats
path: root/zones.d/master
diff options
context:
space:
mode:
Diffstat (limited to 'zones.d/master')
-rw-r--r--zones.d/master/hosts.conf10
-rw-r--r--zones.d/master/services.conf14
2 files changed, 24 insertions, 0 deletions
diff --git a/zones.d/master/hosts.conf b/zones.d/master/hosts.conf
index dba700d..b6ecb28 100644
--- a/zones.d/master/hosts.conf
+++ b/zones.d/master/hosts.conf
@@ -8,6 +8,16 @@ object Host "new-babbage.server.tobiaswiese.net" {
vars.os_family = "debian"
vars.kernel = "linux"
+ vars.dns_zones = {
+ "tobiaswiese.net" = { }
+ "server.tobiaswiese.net" = {
+ dig_record_type = "SOA"
+ }
+ "wieto.net" = {
+ dig_record_type = "SOA"
+ }
+ }
+
vars.http_vhosts = {
"icinga.tobiaswiese.net" = {
http_uri = "/icingaweb2"
diff --git a/zones.d/master/services.conf b/zones.d/master/services.conf
index 2b31393..6f2be19 100644
--- a/zones.d/master/services.conf
+++ b/zones.d/master/services.conf
@@ -37,6 +37,20 @@ apply Service "ssh" {
* Network Service checks
*/
+apply Service "dns-" for (dns_zone => config in host.vars.dns_zones) {
+ import "generic-network-service"
+
+ check_command = "dig"
+
+ vars += {
+ dig_server = host.address || host.address6
+ dig_lookup = dns_zone
+ dig_warning = 0.1s
+ dig_critical = 0.15s
+ }
+ vars += config
+}
+
template Service "http" {
import "generic-network-service"