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 | |
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')
-rw-r--r-- | roles/os_zabbix/vars/template_ops_tools.yml | 23 | ||||
-rw-r--r-- | roles/os_zabbix/vars/template_os_linux.yml | 2 |
2 files changed, 23 insertions, 2 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 diff --git a/roles/os_zabbix/vars/template_os_linux.yml b/roles/os_zabbix/vars/template_os_linux.yml index c81f39c58..70c3809bd 100644 --- a/roles/os_zabbix/vars/template_os_linux.yml +++ b/roles/os_zabbix/vars/template_os_linux.yml @@ -204,12 +204,10 @@ g_template_os_linux: - name: disc.filesys key: disc.filesys lifetime: 1 - template_name: Template OS Linux description: "Dynamically register the filesystems" zitemprototypes: - discoveryrule_key: disc.filesys - template_name: Template OS Linux name: "disc.filesys.full.{#OSO_FILESYS}" key: "disc.filesys.full[{#OSO_FILESYS}]" value_type: float |