Skip to content

Instantly share code, notes, and snippets.

@mlutfy
Last active March 28, 2018 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlutfy/91b63a18aa472a3ee7fe8bef771141c6 to your computer and use it in GitHub Desktop.
Save mlutfy/91b63a18aa472a3ee7fe8bef771141c6 to your computer and use it in GitHub Desktop.
object Host "abc.symbiotic.coop" {
import "generic-host"
groups = [ "icinga-satellites", "aegir-servers", "nginx-servers", "ovh-servers" ]
check_command = "ping"
address = "[...]"
address6 = "[...]"
vars.civicrm["crm.symbiotic.coop"] = { cms = "drupal" }
vars.civicrm["www.symbiotic.coop"] = { cms = "drupal" }
// etc
}
apply Service "DRUPALCORE " for (civicrm => config in host.vars.civicrm) {
import "generic-service"
check_command = "http"
check_interval = 2h
retry_interval = 120s
vars += config
vars.http_ssl = true
vars.http_uri = "/CHANGELOG.txt"
vars.http_vhost = civicrm
vars.http_expect_body_regex = "Drupal 7.58"
assign where config.cms == "drupal"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment