Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-1897

Return unknown (unsupported) value by external checker using non-zero exit code

XMLWordPrintable

      Sometimes external checker cannot get item value - host unavailable or something like this.
      If item type is character or text the only way to report about unknown value for external script is sleep and wait until server kill it. Any other action will lead zabbix server to accept and process returned value (including empty string). Function zbx_execute() ignores exit code of executed process.
      I think more graceful is assume that external checker should return zero retcode in normal case and treat non-zero retcode as fail (as it is for timeout).
      Both windows cmd and unix sh return exit code of executed command as their exit code, it's no problem to check retcode from waitpid().

            Unassigned Unassigned
            pgulchuk Pavel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: