This document discusses managing IT outages using Icinga and StackStorm. It describes how to integrate Icinga and StackStorm to create alerts in chat platforms like Slack when issues arise. Rules can be created to trigger actions in StackStorm in response to events from Icinga. This allows exposing tools to users and giving them control over remediation through ChatOps. Designing services, discovery, and feedback loops are discussed to build trust in automation.
27. •username (string) - Username used to log-in. If not provided, default username from config is used.
•private_key (string) - Private key used to log in. If not provided, private key from the config file is used.
•timeout (integer) - Action timeout in seconds. Action will get killed if it doesn’t finish in timeout seconds.
•sudo (boolean) - The remote command will be executed with sudo.
•kwarg_op (string) - Operator to use in front of keyword args i.e. “–” or “-”.
•password (string) - Password used to log in. If not provided, private key from the config file is used.
•parallel (boolean) - Default to parallel execution.
•cmd (string) - Arbitrary Linux command to be executed on the remote host(s).
•hosts (string) - A comma delimited string of a list of hosts where the remote command will be executed.
•env (object) - Environment variables which will be available to the command(e.g. key1=val1,key2=val2)
•cwd (string) - Working directory where the script will be executed in
•dir (string) - The working directory where the script will be copied to on the remote host.
Additional metadata with remote-shell-cmd
28. id: 55ba7a198bc962174a3911c5
status: succeeded
result:
{
"192.168.33.5": {
"succeeded": true,
"failed": false,
"return_code": 0,
"stderr": "No entry for terminal type "unknown";
using dumb terminal settings.
tput: unknown terminal "unknown"",
"stdout": "UP icinga2: PING OK - Packet loss = 0%, RTA = 0.09 ms
OK random-001 (For 0m 3s)
CRIT random-002 (For 0m 1s)
WARN random-003 (For 0m 1s)
CRIT random-004 (For 0m 5s)
WARN random-005 (For 0m 2s)
OK dns icinga.org (Since 19:18)
OK dns netways.org (Since 19:18)
OK ping4 (Since 04:19)
OK ping6 (Since 04:19)
OK Icinga Web 2 (Since 01:17)