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',