|
@@ -1,7 +1,7 @@
|
|
|
locals {
|
|
|
splunk_hot = var.environment == "test" ? "10000" : "50000"
|
|
|
- interconnect-0 = var.environment == "test" ? ["169.254.230.197", "169.254.142.233", "169.254.221.229", "169.254.145.141"] : ["169.254.152.217", "169.254.88.105", "169.254.253.45", "169.254.91.129"]
|
|
|
- interconnect-1 = var.environment == "test" ? ["169.254.186.189", "169.254.119.73", "169.254.20.161", "169.254.128.189"] : ["169.254.247.157", "169.254.246.157", "169.254.22.21", "169.254.38.13"]
|
|
|
+ #interconnect-0 = var.environment == "test" ? ["169.254.230.197", "169.254.142.233", "169.254.221.229", "169.254.145.141"] : ["169.254.152.217", "169.254.88.105", "169.254.253.45", "169.254.91.129"]
|
|
|
+ #interconnect-1 = var.environment == "test" ? ["169.254.186.189", "169.254.119.73", "169.254.20.161", "169.254.128.189"] : ["169.254.247.157", "169.254.246.157", "169.254.22.21", "169.254.38.13"]
|
|
|
dns_checks_all = var.environment == "test" ? {
|
|
|
"dnstest.accenturefederalcyber.com": "203.0.113.1",
|
|
|
"dnstest.xdrtest.accenturefederalcyber.com": "203.0.113.1",
|
|
@@ -12,13 +12,9 @@ locals {
|
|
|
dns_checks_private = var.environment == "test" ? {
|
|
|
"dnstest.pvt.xdrtest.accenturefederalcyber.com": "10.10.10.10",
|
|
|
"10.10.10.10": "dnstest.pvt.xdrtest.accenturefederalcyber.com.",
|
|
|
- "dnstest.msoc.defpoint.local": "10.10.10.10",
|
|
|
- "dnstest.mdr-test.defpoint.com": "10.10.10.10",
|
|
|
} : {
|
|
|
"dnstest.pvt.xdr.accenturefederalcyber.com": "10.10.10.10",
|
|
|
"10.10.10.10": "dnstest.pvt.xdr.accenturefederalcyber.com.",
|
|
|
- "dnstest.msoc.defpoint.local": "10.10.10.10",
|
|
|
- "dnstest.mdr.defpoint.com": "10.10.10.10",
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -79,29 +75,29 @@ resource "sensu_check" "check_disk_syslog" {
|
|
|
runtime_assets = [ "sensu-plugins-monitoring", ]
|
|
|
}
|
|
|
|
|
|
-resource "sensu_check" "check_ping_interconnect-0" {
|
|
|
- for_each = toset(local.interconnect-0)
|
|
|
- name = "ping_interconnect-0-${index(local.interconnect-0, each.value) +1}"
|
|
|
- command = "check_ping -H ${each.value} -w 500,80% -c 500,80% -4"
|
|
|
- namespace = "default"
|
|
|
- subscriptions = [ "interconnect-0", ]
|
|
|
- handlers = [ "victorops", "logfile", ]
|
|
|
- cron = "* * * * *"
|
|
|
- publish = "true"
|
|
|
- runtime_assets = [ "sensu-plugins-monitoring", ]
|
|
|
-}
|
|
|
-
|
|
|
-resource "sensu_check" "check_ping_interconnect-1" {
|
|
|
- for_each = toset(local.interconnect-1)
|
|
|
- name = "ping_interconnect-1-${index(local.interconnect-1, each.value) +1}"
|
|
|
- command = "check_ping -H ${each.value} -w 500,80% -c 500,80% -4"
|
|
|
- namespace = "default"
|
|
|
- subscriptions = [ "interconnect-1", ]
|
|
|
- handlers = [ "victorops", "logfile", ]
|
|
|
- cron = "* * * * *"
|
|
|
- publish = "true"
|
|
|
- runtime_assets = [ "sensu-plugins-monitoring", ]
|
|
|
-}
|
|
|
+#resource "sensu_check" "check_ping_interconnect-0" {
|
|
|
+# for_each = toset(local.interconnect-0)
|
|
|
+# name = "ping_interconnect-0-${index(local.interconnect-0, each.value) +1}"
|
|
|
+# command = "check_ping -H ${each.value} -w 500,80% -c 500,80% -4"
|
|
|
+# namespace = "default"
|
|
|
+# subscriptions = [ "interconnect-0", ]
|
|
|
+# handlers = [ "victorops", "logfile", ]
|
|
|
+# cron = "* * * * *"
|
|
|
+# publish = "true"
|
|
|
+# runtime_assets = [ "sensu-plugins-monitoring", ]
|
|
|
+#}
|
|
|
+#
|
|
|
+#resource "sensu_check" "check_ping_interconnect-1" {
|
|
|
+# for_each = toset(local.interconnect-1)
|
|
|
+# name = "ping_interconnect-1-${index(local.interconnect-1, each.value) +1}"
|
|
|
+# command = "check_ping -H ${each.value} -w 500,80% -c 500,80% -4"
|
|
|
+# namespace = "default"
|
|
|
+# subscriptions = [ "interconnect-1", ]
|
|
|
+# handlers = [ "victorops", "logfile", ]
|
|
|
+# cron = "* * * * *"
|
|
|
+# publish = "true"
|
|
|
+# runtime_assets = [ "sensu-plugins-monitoring", ]
|
|
|
+#}
|
|
|
|
|
|
resource "sensu_check" "check_phantom_ports" {
|
|
|
name = "phantom_ports"
|