Skip to content

Commit

Permalink
Change graph type
Browse files Browse the repository at this point in the history
  • Loading branch information
samosvat committed Jun 22, 2018
1 parent 40da00a commit 814e0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ztc_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 814e0d0

Please sign in to comment.