checks-threatq.tf 768 B

123456789101112131415161718192021
  1. resource "sensu_check" "check_cert_expire_443" {
  2. name = "check_cert_expire_443"
  3. command = "check-ssl-cert.rb -h 127.0.0.1 -p 443 -c 7 -w 30"
  4. namespace = "default"
  5. subscriptions = ["threatq", ]
  6. handlers = ["email-xdr-eng"]
  7. cron = "00 16 * * *"
  8. publish = "true"
  9. runtime_assets = ["sensu-plugins-ssl", "sensu-ruby-runtime"]
  10. }
  11. resource "sensu_check" "check_threatq_health" {
  12. name = "check_threatq_health"
  13. command = "check-http.rb -k -u https://localhost/health/ -q OK"
  14. namespace = "default"
  15. subscriptions = ["threatq", ]
  16. handlers = local.default_handlers
  17. interval = 120
  18. publish = "true"
  19. runtime_assets = ["sensu-plugins-http", "sensu-ruby-runtime"]
  20. }