summaryrefslogtreecommitdiffstats
path: root/zones.d/master/services.conf
diff options
context:
space:
mode:
authorTobias Wiese <tobias@tobiaswiese.com>2020-05-13 16:26:04 +0200
committerTobias Wiese <tobias@tobiaswiese.com>2020-05-14 12:15:16 +0200
commitab656fb6bc13de4d263ca3d05979f0d2bebf3d50 (patch)
tree8415d89b0ad71c4d6b409d4900ed565f65bb4fa5 /zones.d/master/services.conf
parent71c820054059b801ed53ef5c12bef57d975879fa (diff)
service/dns: Monitor authroitive dns server
Monitors the zones of authorative dns servers. Does not validate DNSSEC or the resulting ip address. Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
Diffstat (limited to 'zones.d/master/services.conf')
-rw-r--r--zones.d/master/services.conf14
1 files changed, 14 insertions, 0 deletions
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"