Ad Widget

Collapse

zabbix-sender in 1.4 question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alj
    Senior Member
    • Aug 2006
    • 188

    #1

    zabbix-sender in 1.4 question

    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
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    ./zabbix_sender --help
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • alj
      Senior Member
      • Aug 2006
      • 188

      #3
      Originally posted by Alexei
      ./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.
      Last edited by alj; 27-09-2007, 01:49.

      Comment

      • alj
        Senior Member
        • Aug 2006
        • 188

        #4
        Originally posted by Alexei
        ./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?

        Comment

        • lamont
          Member
          • Nov 2007
          • 89

          #5
          Originally posted by alj
          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:

          Last edited by lamont; 21-11-2007, 21:29.

          Comment

          Working...