Skip to content

Icinga

Icinga

Query icinga database for stats and other information. It also allows you to subscribe to alters using alertmanager.

Description

Icinga integration gives you ability to query your stats and other information and to run other management commands using maira commands.

You can also send your alerts to maira using Icinga alertmanager webhook. Details to be added.

Installation

For integrating with icinga, you need to provide your icinga host addresses and authorization token. Make sure that service_name is set as icinga and there is one cluster named icinga-default since this will be used by default if no cluster is specified in the command.

Helm Config

Below is sample configuration for enabling icinga integration through Helm Chart Values file

icinga:
  disabled: false
  clusters:
    icinga-default:
      url: "https://localhost:5665"
      token: "Basic <Enter icinga Token Here>"
      tls_config:
        cert_file: ./certs/dev/localhost.crt
        key_file: ./certs/dev/localhost.key
        ca_cert: ./certs/dev/CA.crt
        insecure: true
  • disabled tag can be set to true to temporarily disable the service without removing the config
  • multiple clusters can be added under tag "clusters"
  • tags "tls_config" is optional

Direct Config

Below is sample configuration for enabling icinga integration

modules:
  - name: maira_io.module.http
services:
  - name: maira_io.service.http
    typed_config:
      "@type": types.google.com/maira_io.config.service.http.v1.Config
      clusters:
        - name: icinga-default
          addresses:
            - "https://localhost:5665"
          request_headers_add:
            "content-type": "application/json"
            "Accept": "application/json"
            "Authorization": "Basic cm9vdDpCZWVoeXZAMTIz"
          service_name: icinga
          tls_config:
            cert_file: ./certs/dev/localhost.crt
            key_file: ./certs/dev/localhost.key
            ca_cert: ./certs/dev/CA.crt
            insecure: true