summaryrefslogtreecommitdiffstats
path: root/roles/lib_zabbix
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-10-21 14:26:52 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-10-21 14:26:52 -0400
commitedfd8dc450854d6f2efa6c3d67e856b66b3743fd (patch)
tree09e830a8e9911eed983f5d867711a2e33506c046 /roles/lib_zabbix
parent4a52a7367dc91ba54830c9bba1f8e5831abb839a (diff)
parentc16cc8398b4313cdee12a1332a268c8979481ac7 (diff)
downloadopenshift-edfd8dc450854d6f2efa6c3d67e856b66b3743fd.tar.gz
openshift-edfd8dc450854d6f2efa6c3d67e856b66b3743fd.tar.bz2
openshift-edfd8dc450854d6f2efa6c3d67e856b66b3743fd.tar.xz
openshift-edfd8dc450854d6f2efa6c3d67e856b66b3743fd.zip
Merge pull request #715 from kwoodson/zabb
Adding delta to zbx_item
Diffstat (limited to 'roles/lib_zabbix')
-rw-r--r--roles/lib_zabbix/library/zbx_item.py2
-rw-r--r--roles/lib_zabbix/tasks/create_template.yml1
2 files changed, 3 insertions, 0 deletions
diff --git a/roles/lib_zabbix/library/zbx_item.py b/roles/lib_zabbix/library/zbx_item.py
index caca2df52..2cd00dd27 100644
--- a/roles/lib_zabbix/library/zbx_item.py
+++ b/roles/lib_zabbix/library/zbx_item.py
@@ -126,6 +126,7 @@ def main():
zabbix_type=dict(default=2, type='int'),
value_type=dict(default='int', type='str'),
interval=dict(default=60, type='int'),
+ delta=dict(default=0, type='int'),
multiplier=dict(default=None, type='str'),
description=dict(default=None, type='str'),
units=dict(default=None, type='str'),
@@ -191,6 +192,7 @@ def main():
'description': module.params['description'],
'units': module.params['units'],
'delay': module.params['interval'],
+ 'delta': module.params['delta'],
}
# Remove any None valued params
diff --git a/roles/lib_zabbix/tasks/create_template.yml b/roles/lib_zabbix/tasks/create_template.yml
index df7888a95..d5168a9f4 100644
--- a/roles/lib_zabbix/tasks/create_template.yml
+++ b/roles/lib_zabbix/tasks/create_template.yml
@@ -40,6 +40,7 @@
applications: "{{ item.applications }}"
zabbix_type: "{{ item.zabbix_type | default(2, True) }}"
interval: "{{ item.interval | default(60, True) }}"
+ delta: "{{ item.delta | default(0, True) }}"
with_items: template.zitems
register: created_items
when: template.zitems is defined