diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2015-10-02 12:59:52 -0400 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2015-10-02 12:59:52 -0400 |
commit | c443f3fc1b901b72a58e0e28b5a280cec205cbbd (patch) | |
tree | c86ab69cda7d6a1402c779968bb20b41c8fd4012 /roles/os_zabbix/vars/template_ops_tools.yml | |
parent | fe5da92d3772802dc50d0bbe602e67cc3b5c7dec (diff) | |
parent | e40b829103db88072c0e5fc759bff239cb214a43 (diff) | |
download | openshift-c443f3fc1b901b72a58e0e28b5a280cec205cbbd.tar.gz openshift-c443f3fc1b901b72a58e0e28b5a280cec205cbbd.tar.bz2 openshift-c443f3fc1b901b72a58e0e28b5a280cec205cbbd.tar.xz openshift-c443f3fc1b901b72a58e0e28b5a280cec205cbbd.zip |
Merge pull request #651 from twiest/cpr
added Template Ops Tools
Diffstat (limited to 'roles/os_zabbix/vars/template_ops_tools.yml')
-rw-r--r-- | roles/os_zabbix/vars/template_ops_tools.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/os_zabbix/vars/template_ops_tools.yml b/roles/os_zabbix/vars/template_ops_tools.yml new file mode 100644 index 000000000..d1b8a2514 --- /dev/null +++ b/roles/os_zabbix/vars/template_ops_tools.yml @@ -0,0 +1,23 @@ +--- +g_template_ops_tools: + name: Template Operations Tools + zdiscoveryrules: + - name: disc.ops.runner + key: disc.ops.runner + lifetime: 1 + description: "Dynamically register operations runner items" + + zitemprototypes: + - discoveryrule_key: disc.ops.runner + name: "Exit code of ops-runner[{#OSO_COMMAND}]" + key: "disc.ops.runner.command.exitcode[{#OSO_COMMAND}]" + value_type: int + description: "The exit code of the command run from ops-runner" + applications: + - Ops Runner + + ztriggerprototypes: + - name: 'ops-runner[{#OSO_COMMAND}]: non-zero exit code on {HOST.NAME}' + expression: '{Template Operations Tools:disc.ops.runner.command.exitcode[{#OSO_COMMAND}].last()}<>0' + url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_ops_runner_command.asciidoc' + priority: average |