Redirected stdout of zabbix_sender

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • 2.0.7rc1, 2.1.0
    • Affects Version/s: 2.0.4, 2.0.5
    • Component/s: Agent (G)
    • Environment:
      AIX version 5.3, 7.1

      Hello.
      I have a problem with the 2.0.4 version of zabbix_sender. When i use it
      with stdout on terminal, it returns "info from server":

      1. ./zabbix_sender -z zabbix_server -i /var/run/zabbix/cache.nmon 2>&1
        info from server: "Processed 12 Failed 0 Total 12 Seconds spent 0.000201"
        sent: 12; skipped: 0; total: 12

      But when stdout is redirected, no info from server appears:

      1. ./zabbix_sender -z zabbix_server -i /var/run/zabbix/cache.nmon
        2>&1 | cat
        sent: 12; skipped: 0; total: 12

      Our scripts are dependent on this info (especially Failed count). Is
      there any other way to get information about failed keys in sending session?
      Or isn't it a bug?
      When I include an invalid key in the file, responses are as follows:

      1. ./zabbix_sender -z zabbix_server -i /var/run/zabbix/cache.nmon 2>&1
        info from server: "Processed 12 Failed 1 Total 13 Seconds spent 0.000205"
        sent: 13; skipped: 0; total: 13
      1. ./zabbix_sender -z zabbix_server -i /var/run/zabbix/cache.nmon
        2>&1 | cat
        sent: 13; skipped: 0; total: 13

      In the latter case I have no information about failing key. Return value
      is still 0.

      Thank you.

            Assignee:
            Unassigned
            Reporter:
            Tomas Pipo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: