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

Incorrect error message when creating a trigger prototype

    XMLWordPrintable

    Details

      Description

      If you try to create a trigger prototype without an item prototype, you will see the following message:

      Created: Trigger prototype "trigger" on "trapper-host 2".
      Trigger "trigger:

      {13109}

      =0" does not have item prototype. [trigger_prototypes.php:166 ? CAPIObject->create() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CTriggerPrototype->create() ? CZBXAPI::exception() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/api/classes/CTriggerPrototype.php:523]

      There are several problems with it:
      1. It says that the prototype was created, even when it wasn't.
      2. The expression in the error message is imploded.
      3. The error message is grammatically incorrect. It should be changed to something like "Trigger prototype expression %expression% must contain at least one item prototype."

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jelisejev Pavels Jelisejevs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: