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

api trigger.get expand macro URL

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.1
    • API (A)
    •  CentOS 7, zabbix repo install.

      Using API, method trigger.get do not expand native macros used in URL field. Only works in frontend but not using API.

      Curiosly i find a partitial solution, changing the file "/usr/share/zabbix/include/classes/api/services/CTrigger.php" at line 465, adding follow lines.

      ------------------------------
      if (!is_null($options['expandComment']) && $result && array_key_exists('url', reset($result))) {
      $result = CMacrosResolverHelper::resolveTriggerUrls($result);
      }
      ------------------------------

      I used the existent option of "expandComment" to call "resolveTriggerUrls" to resolve my problem partialy.

      I request in next release add this fix.

      Thanks

        1. 68fce506-a010-4d36-ab12-f5082840b79a.jpg
          7 kB
          Jorge Fernando Matsudo Iwano
        2. JSONLint - The JSON Validator - Google Chrome.png
          4 kB
          Jorge Fernando Matsudo Iwano

            sasha Alexander Vladishev
            jorge.iwano Jorge Fernando Matsudo Iwano
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: