terraform/website/source/docs/providers/icinga2/r/service.html.markdown

952 B

layout page_title sidebar_current description
icinga2 Icinga2: service docs-icinga2-resource-service Configures a service resource. This allows service to be configured, updated and deleted.

icinga2_service

Configures an Icinga2 service resource. This allows service to be configured, updated, and deleted.

Example Usage

# Configure a new service to be monitored by an Icinga2 Server
provider "icinga2" {
  api_url = "https://192.168.33.5:5665/v1"
}

resource "icinga2_service" "my-service" {
  hostname      = "c1-mysql-1"
  servicename   = "ssh"
  check_command = "ssh"
}

Argument Reference

The following arguments are supported:

  • check_command - (Required) The name of an existing Icinga2 CheckCommand object that is used to determine if the service is available on the host.
  • hostname - (Required) The host to check the service's status on
  • servicename - (Required) The name of the service.