3.4
2018-05-21T07:06:19Z
Custom Templates
preprocessing sample
preprocessing sample
Custom Templates
trap
json receiver
2
json.key
0
0
0
0
0
0
0
30d
create a host with name 'receiver' and assign this template.
Send from command line:
zabbix_sender -z 127.0.0.1 -s "receiver" -k json.key -o "$(echo -e "one\ntwo\nthree" | sed "s/^/{\"{#NR}\":\"/;s/$/\"},/" | tr -cd "[:print:]" | sed "s/^/{\"data\":[/;s/,$/]}/")"
first preprocessing for {#NR}
18
first.preprocessing.for[{#NR}]
0
90d
0
0
4
0
0
0
0
0
trap
5
(177 Wear_Leveling_Count|202 Percent_Lifetime_Used|233 Media_Wearout_Indicator) 0x[0-9a-z] ([0-9])
\2
trapper.key[{#NR}]
Trapper key for {#NR}
2
trapper.key[{#NR}]
0
90d
0
0
4
0
0
0
0
0
trap