[ZBXNEXT-242] Support user macros in graph names Created: 2010 Feb 18 Updated: 2023 Nov 17 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Frontend (F) |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Major |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 47 |
Labels: | graphs, macros, patch, usermacros | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
tested on Oracle, maybe for other DBs need correct SQL query. |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||
Issue Links: |
|
Comments |
Comment by Alexey Pustovalov [ 2010 Feb 24 ] |
added support for templated macros |
Comment by richlv [ 2010 Feb 24 ] |
similar to |
Comment by Alexey Pustovalov [ 2010 Feb 24 ] |
now thise patch now executes queries. using API |
Comment by richlv [ 2010 Apr 29 ] |
Comment by hamid sfandiari [ 2010 Jul 08 ] |
in zabbix 1.8.3 the following differ line is not exist which differ file pointed to them: – charts.php >> $db_data = reset($db_data); |
Comment by Jeroen Simonetti [ 2011 Feb 11 ] |
New patch for 1.8.4. based on previously attached patch. Only applying host-level macro's (seems to loop forever if template macros are also checked). Using CGraph API. |
Comment by richlv [ 2011 Dec 26 ] |
another patch provided in |
Comment by Ian babrou [ 2011 Dec 27 ] |
Is there any chance to get it fixed somehow? 3 patches and no progress. I tried to use common conveniences from zabbix php frontend in my patch, so maybe it looks more organic? |
Comment by richlv [ 2011 Dec 27 ] |
given how overdue 2.0 is, this one most likely won't be tucked onto it. it will be re-evaluated later |
Comment by Vance Turner [ 2012 Jan 05 ] |
This is hurting the perception of the product in many areas, and should not be put off. |
Comment by Hasitha Lalinda [ 2012 Jul 09 ] |
I've created a new patch for version 2. (Attached graph-name-macros_fixed.diff)
This patch has been tested with version 2.0.1. PS: A bug was found in previous diff file graph-name-macros.diff. Fixed version attached: "graph-name-macros_fixed.diff". |
Comment by Benjamin Goodrich [ 2013 Feb 15 ] |
Is this still currently being planned for inclusion in a future release? |
Comment by Eugene [ 2014 Jan 09 ] |
User macros are very important for the universalization of the templates. For example, I used the basic template for a variety of devices (routers and switches) through user macros, but the names of the graphs have the same value - port 1, port 2, ... instead Fastethernet or Gigabitethernet depending on the device - this is inconvenient. |
Comment by Tomasz Kłoczko [ 2015 Jan 28 ] |
I'm looking for updated patch which enables use macros in graphs. |
Comment by Alexander [ 2016 Oct 05 ] |
Have a nice day! |
Comment by Alexander [ 2016 Oct 06 ] |
Hi all! In my case Discovery rule configured with: ,x.x.x] On the host macros redefined: Macros on the host {$SLA_NAME:1} work for Items, Triggers, but not for Graphs names. |
Comment by Victor Vislobokov [ 2019 Jan 22 ] |
I added support user's macros for Graph names. See patches for zabbix3 and zabbix4. Unfortunately, I'm not PHP programmer, only sysadmin with a little skill with PHP programming. May be, I mistaken somethere, but it works for my Zabbix installation. |