Hello all,
I'm having some trouble with getting zabbix_sender to send multiline text items from an input file. I'm getting the feeling that it is not supported, and if so, I'd like to know so I can stop putting an effort in it.
Background: I prefer using 'zabbix_sender -T -i <file>' because all the items in that update will have the same timestamp, and can be stacked in a graph without looking hideous. In that same zabbix_sender run, I have the (multiline) output of a storage controller command which I'd like to save.
What I'm basically trying is:
Input file "file.dat":
And I run:
You can also try using "-i -" and typing the lines on STDIN, but that yields the same "Warning: 'Key' required" after each <return>.
What does work, however, is the following trick:
Any thoughts? Is the input file option just something that doesn't go with multiline items?
I'm having some trouble with getting zabbix_sender to send multiline text items from an input file. I'm getting the feeling that it is not supported, and if so, I'd like to know so I can stop putting an effort in it.

Background: I prefer using 'zabbix_sender -T -i <file>' because all the items in that update will have the same timestamp, and can be stacked in a graph without looking hideous. In that same zabbix_sender run, I have the (multiline) output of a storage controller command which I'd like to save.
What I'm basically trying is:
Input file "file.dat":
Code:
STORAGEARRAY controller.output 1361199449 "line1 line 2 line 3"
Code:
[B]# zabbix_sender -vv -c zabbix_agentd.conf -T -i file.dat[/B] zabbix_sender [1339]: Warning: [line 1] 'Key value' required zabbix_sender [1339]: Warning: [line 2] 'Key' required zabbix_sender [1339]: Warning: [line 3] 'Key' required sent: 0; skipped: 3; total: 3
What does work, however, is the following trick:
Code:
[B]# zabbix_sender -vv -c zabbix_agentd.conf -s STORAGEARRAY -k controller.output -o "line1 [I]<press enter>[/I]
> line 2 [I]<press enter>[/I]
> line 3" [I]<press enter>[/I]
zabbix_sender [13252]: DEBUG: Answer [{
"response":"success",
"info":"Processed 1 Failed 0 Total 1 Seconds spent 0.000039"}]
Info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.000039"
sent: 1; skipped: 0; total: 1
Comment