From 814e0d058f6da5aafb3906fee311e792d202a4d5 Mon Sep 17 00:00:00 2001 From: Nikolay Samosvat Date: Fri, 22 Jun 2018 18:55:08 +0300 Subject: [PATCH] Change graph type --- ztc_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ztc_create.py b/ztc_create.py index b5f2eeb..bc362c5 100755 --- a/ztc_create.py +++ b/ztc_create.py @@ -289,7 +289,7 @@ def z_host_create(zbx_host, zbx_vname, group_id, appl_name, lld_name, lld_key, i gitems = list() i = 0 for graph in g2_itemids: - gitems.append({'itemid': graph, 'color': colors[i], 'drawtype': '5'}) + gitems.append({'itemid': graph, 'color': colors[i], 'drawtype': '5', 'calc_fnc': '9'}) i += 1 g2_id = zapi.graph.create({'hostids': host_id, 'name': g2_name, 'width': '1000', 'height': '300',