PDA

View Full Version : zabbix-sender in 1.4 question


alj
23-09-2007, 23:10
Besides the fact that 1.4 sender is not working for me (i have to use sender from 1.1.7), theres another question about it: does it still have ability to send multiple metrics at the same time accepting data from stdin? I couldnt find anything about it in documentation.
I need to send about 5000 metrics every minute, and starting zabbix_sender process 5000 times a minute doesnt sound very efficient and will use up all my trapper daemons on the server instead of possibly using only 1.

Thanks!

Alexei
24-09-2007, 21:16
./zabbix_sender --help

alj
27-09-2007, 00:47
./zabbix_sender --help

Itry to specify file as stdin and it doesnt work:
zabbix_sender -i-
(exits immediately)

So that can be done now only via temporary file now?
EDIT: i want to clarify why this can be important.
I collect about 5000 metrics which are sensitive to the time when they were collected.
The script is multithreaded and runs in real time - as soon as it collects metric it sends it via zabbix_sender right away and on the server i calculate "change per second".

Script takes about 30 sec to run.
If i collect metric to the tmp filke first then "change per second" value will be jumping up and down depending on random delayh between it was scanned and sent to zabbix_sender via temp file.

alj
27-09-2007, 00:51
./zabbix_sender --help

BTW 1.4.2 zabbix_sender doesnt work even if specify corect parameters in new format as described in help page - I just want to make that clear, its a bug. (i didnt try that via input file since i have to change my software to do so).
THats why i have to use old zabbix_sender for now until this is fixed.

If that is not true please send me cut&paste of working zabbix_sender where it says that it delivered metric successfully. Maybe i'm doing something wrong here?

lamont
21-11-2007, 20:00
Besides the fact that 1.4 sender is not working for me (i have to use sender from 1.1.7), theres another question about it: does it still have ability to send multiple metrics at the same time accepting data from stdin?

No, not any more.

In the source, if you don't pass it a -i option, then INPUT_FILE is NULL and if INPUT_FILE is NULL it wants command line args. If INPUT_FILE is not NULL it passes it directly to fopen() and doesn't understand the '-' argument.

EDIT: Here's a patch to make '-i -' work:

http://www.scriptkiddie.org/zabbix-1.4.2-sender-stdin.patch