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

zabbix_get non-zero exit code in case of ZBX_NOTSUPPORTED

XMLWordPrintable

    • Sprint candidates
    • 0.25

      There is a difference in behaviour of zabbix_get between 6.4 and 7.0:

      $ cat compose.yaml 
      services:
        agent-7.0:
          image: zabbix/zabbix-agent:ubuntu-7.0-latest
          environment:
            ZBX_PASSIVESERVERS: 127.0.0.1,::1
        agent-6.4:
          image: zabbix/zabbix-agent:ubuntu-6.4-latest
          environment:
            ZBX_PASSIVESERVERS: 127.0.0.1,::1
      $ docker compose up -d
      ...
      $ docker-compose exec agent-6.4 zabbix_get -s localhost -k agent.pong
      ZBX_NOTSUPPORTED: Unsupported item key.
      $ echo $?
      0
      $ docker-compose exec agent-7.0 zabbix_get -s localhost -k agent.pong
      ZBX_NOTSUPPORTED: Unsupported item key.
      $ echo $?
      1
      

      I suppose it is related to ZBXNEXT-8854.

      If the change is intentional, it has to be documented in Upgrade Notes.

      Meaning of exit codes should be documented in zabbix_get man page.

            rtrizna Romans Trizna
            cyclone Glebs Ivanovskis
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 11h 50m
                11h 50m