Skip to content

Commit 87720d6

Browse files
author
zhanghe5
committed
修改说明
1 parent a77326e commit 87720d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zabbix_item_add.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get_options():
6969
0 - numeric float;
7070
1 - character;
7171
2 - log;
72-
numeric unsigned;
72+
3 - numeric unsigned;
7373
4 - text.""")
7474
parser.add_option("--delta",action="store",type="int",\
7575
dest="delta",default="0",help="""Value that will be stored.
@@ -183,4 +183,4 @@ def errmsg(msg):
183183
else:
184184
print zapi.item.create({"name":name,"key_":key,"hostid":hostid,"type":(type),"interfaceid":interfaceid,"value_type":value_type,"delay":delay,"history":history,"delta":delta,"units":units,"params":params})
185185
except Exception as e:
186-
print str(e)
186+
print str(e)

0 commit comments

Comments
 (0)