This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: conditional_action | |
pack: test | |
description: "Executes the action based on run_action parameter." | |
runner_type: orquesta | |
entry_point: workflow/conditional_action.yaml | |
enabled: True | |
parameters: | |
run_action: | |
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Case 1: Identify hosts with faults detected by Shinken monitoring. Request made via LiveStatus. | |
DATA | |
"result": { | |
"result": [ | |
[ | |
"bench-05.example.com", | |
0 | |
], | |
[ | |
"bench-03.example.com", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" --force-yes -fuy dist-upgrade | |
apt-get --purge -y autoremove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
chain: | |
- | |
name: say_it | |
ref: core.local | |
parameters: | |
cmd: 'echo "{{ cmd }}"' | |
on-success: run_it | |
- | |
name: run_it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<patterndb version='5' pub_date='2017-06-15'> | |
<ruleset id='a0dab742fc66ad5cdf41bfd0c105f3df' name='nagios'> | |
<patterns> | |
<pattern>nagios</pattern> | |
<pattern>shinken</pattern> | |
</patterns> | |
<rules> | |
<rule provider='github.com/nzlosh' id='nagios-1' class='monitoring'> | |
<patterns> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Core] | |
name = Test Slack Attachment | |
module = . | |
[Documentation] | |
description = Test slack attachments message split. | |
[Python] | |
version = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionChain | |
----------- | |
--- | |
chain: | |
- | |
name: hello_world | |
ref: core.local | |
parameters: | |
cmd: | |