summaryrefslogtreecommitdiffstats
path: root/roles/lib_zabbix/library
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-10-20 17:31:09 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-10-20 17:31:09 -0400
commitc16cc8398b4313cdee12a1332a268c8979481ac7 (patch)
tree8738d25cbb9acd9733d227b47815781cff71211e /roles/lib_zabbix/library
parentba80a2c5b19614c87d2ce0568ed8830c62d40f95 (diff)
downloadopenshift-c16cc8398b4313cdee12a1332a268c8979481ac7.tar.gz
openshift-c16cc8398b4313cdee12a1332a268c8979481ac7.tar.bz2
openshift-c16cc8398b4313cdee12a1332a268c8979481ac7.tar.xz
openshift-c16cc8398b4313cdee12a1332a268c8979481ac7.zip
Adding delta feature to zbx_item
Diffstat (limited to 'roles/lib_zabbix/library')
-rw-r--r--roles/lib_zabbix/library/zbx_item.py2
1 files changed, 2 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