This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
manual:api:reference:itemprototype:create [2020/08/21 08:59] martins-v internal link to data types (ZBX-17160) |
manual:api:reference:itemprototype:create [2020/12/14 16:05] martins-v use of positional macros in item name is deprecated (ZBX-18765) |
||
---|---|---|---|
Line 35: | Line 35: | ||
"method": "itemprototype.create", | "method": "itemprototype.create", | ||
"params": { | "params": { | ||
- | "name": "Free disk space on $1", | + | "name": "Free disk space on {#FSNAME}", |
"key_": "vfs.fs.size[{#FSNAME},free]", | "key_": "vfs.fs.size[{#FSNAME},free]", | ||
"hostid": "10197", | "hostid": "10197", | ||
Line 72: | Line 72: | ||
"method": "itemprototype.create", | "method": "itemprototype.create", | ||
"params": { | "params": { | ||
- | "name": "Incoming network traffic on $1", | + | "name": "Incoming network traffic on {#IFNAME}", |
"key_": "net.if.in[{#IFNAME}]", | "key_": "net.if.in[{#IFNAME}]", | ||
"hostid": "10001", | "hostid": "10001", |