Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-6285

Redirected stdout of zabbix_sender

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4, 2.0.5
    • 2.0.7rc1, 2.1.0
    • Agent (G)
    • AIX version 5.3, 7.1

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: