Slide 14
Slide 14 text
StackStorm 使用例
• 監視検知時に実行
---
version: '2.0'
e_nagios.remediate_web_workflow:
type: direct
input:
- hostname
- res_code
tasks:
lets_work:
# [466, 27]
action: chatops.post_message
input:
channel: <% $.channel %>
message: "trying
to take care of the web server status issue on <% $.hostname %>"
on-success:
- check_web
check_web:
# [289, 149]
action: e_nagios.check_web
input:
hosts: <% $.hostname %>
res_code: <% $.res_code %>
on-success:
- hubot_error
on-error:
- remediate
remediate:
# [489, 233]
action: e_nagios.web_remediate
input:
hosts: <% $.hostname %>
on-success:
- check_web_full
on-error:
- hubot_mes_fail