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

fix api return codes

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Unsupported version
    • Affects Version/s: 1.9.0 (alpha)
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:

      Description

      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]

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: