-
New Feature Request
-
Resolution: Unresolved
-
Minor
-
None
-
4.0.1
-
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