|
@@ -25,7 +25,7 @@ locals {
|
|
|
resource "sensu_check" "check_dns_all" {
|
|
|
for_each = local.dns_checks_all
|
|
|
name = "check_dns_${ each.key }"
|
|
|
- command = "check_dns --hostname=${ each.key } --expected-address=${ each.value } --warning=0.5 --critical=5"
|
|
|
+ command = "check_dns --hostname=${ each.key } --expected-address=${ each.value } --warning=${ var.sensu_checks["dns"]["warning"] } --critical=${ var.sensu_checks["dns"]["critical"] }"
|
|
|
namespace = "default"
|
|
|
subscriptions = [ "linux", ]
|
|
|
handlers = [ "victorops", "logfile", ]
|
|
@@ -37,7 +37,7 @@ resource "sensu_check" "check_dns_all" {
|
|
|
resource "sensu_check" "check_dns_private" {
|
|
|
for_each = local.dns_checks_private
|
|
|
name = "check_dns_${ each.key }"
|
|
|
- command = "check_dns --hostname=${ each.key } --expected-address=${ each.value } --warning=0.5 --critical=5"
|
|
|
+ command = "check_dns --hostname=${ each.key } --expected-address=${ each.value } --warning=${ var.sensu_checks["dns"]["warning"] } --critical=${ var.sensu_checks["dns"]["critical"] }"
|
|
|
namespace = "default"
|
|
|
subscriptions = [ "private_dns_client", ]
|
|
|
handlers = [ "victorops", "logfile", ]
|