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

fix api return codes

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unsupported version
    • Icon: Major Major
    • None
    • 1.9.0 (alpha)
    • API (A)

      Error messages should have their own differing error number. The error number is an excellent way for programs that use the API to determine what the error is.

      The following is an example of two errors that both have the same error number but different error messages.

      add host host=test dns=test
      An error was received from the Zabbix server
      Error code: -32500
      Error message: Application error.
      Error data: No groups for host [ test ]

      add host host=host dns=test groupids=1
      An error was received from the Zabbix server
      Error code: -32500
      Error message: Application error.
      Error data: Unknown ZABBIX internal error [CHost]

            Unassigned Unassigned
            redtux nelsonab
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: