The Icinga2 Executor is an executor that extracts data from a Tornado Action and prepares it to be sent to the Icinga2 API.
This executor expects a Tornado Action to include the following elements in its payload:
- An icinga2_action_name: The Icinga2 action to perform.
- 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"
}
}
}