Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.12 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.12 KB

Icinga2 Executor

The Icinga2 Executor is an executor that extracts data from a Tornado Action and prepares it to be sent to the Icinga2 API.

How It Works

This executor expects a Tornado Action to include the following elements in its payload:

  1. An icinga2_action_name: The Icinga2 action to perform.
  2. An icinga2_action_payload (optional): The parameters of the Icinga2 action.

The icinga2_action_name should match one of the existing Icinga2 actions.

The icinga2_action_payload should contain at least all mandatory parameters expected by the specific Icinga2 action.

An example of a valid Tornado Action is:

{
    "id": "icinga2",
    "payload": {
        "icinga2_action_name": "process-check-result",
        "icinga2_action_payload": {
            "exit_status": "${event.payload.exit_status}",
            "plugin_output": "${event.payload.plugin_output}",
            "filter": "host.name==\"example.localdomain\"",
            "type": "Host"
        }
    }
}