[ZBXNEXT-2767] expand user macros in graph names Created: 2015 Apr 07  Updated: 2018 Sep 27

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F), Server (S)
Affects Version/s: 2.4.4
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Vadim Nesterov Assignee: Unassigned
Resolution: Unresolved Votes: 6
Labels: graphs, name, usermacros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBXNEXT-242 Support user macros in graph names Open

 Description   

This works in items names:
{$VSP1POOL{#POOLID}}

when you define user macros:
{$VSP1POOL000} -> DP-data_vg-0

but it doesn't work in names of graph prototypes



 Comments   
Comment by Oleksii Zagorskyi [ 2015 Apr 08 ]

How LLD macros can be expended in prototypes ?
Looks like support request, see http://www.zabbix.org/wiki/Docs/bug_reporting_guidelines
I'd close it.

Comment by Vadim Nesterov [ 2015 Apr 08 ]

Oleksiy, I don't understand you.
You don't believe me that it works?
It is really good feature and I want that it works in name of graph prototypes, in names of item protypes it work, do you need screenshots ?

Comment by Oleksii Zagorskyi [ 2015 Apr 08 ]

The description is a bit misleading (or I'm bad ...)
Would be more clean if talk about lld created graphs but not their prototypes.
Last your comment clarified what you actually meant.

Limitation supposedly is that a graph actually doesn't belong to any host so it's hard to decide how to expand a lld macro when creating a graph.
More details why it's complicated to expand such macros you can find in ZBXNEXT-1967, which asks for host macros support in graph names

Comment by richlv [ 2015 Sep 25 ]

isn't this about usermacros instead of lld macros ?

zalex_ua Indeed, reporter actually described LLD macro nested in user macro.
I've adjusted all places where I was wrong.

Comment by Alexander [ 2016 Oct 05 ]

Have a nice day!
What about this features?
This is good idea, very needed for effective use of monitoring nodes with user items names.

Comment by Alexander [ 2016 Oct 06 ]

Hi all!
For example, in zabbix v3 macros support contexts, and this very usable for many sub-items in snmp tree (with Discovery).

In my case Discovery rule configured with:
SNMP OID -> discovery[

{#OID}

,x.x.x]
Items name: {$SLA_NAME.{#SNMPINDEX}}

On the host macros redefined:
{$SLA_NAME:1} -> Tunnel name 1
{$SLA_NAME:2} -> Tunnel name 2

Macros on the host {$SLA_NAME:1} work for Items, Triggers, but not for Graphs names.

Comment by brendon [ 2018 Sep 27 ]

Looks like I ran into this issue as well.

 

I tried creating a macro like : {$IF_DESC:ens192}  = WAN

Then using it in the graph prototypes but was unsuccessful. It would be nice to somehow have interface descriptions for UNIX machines.

Generated at Fri Apr 26 12:29:09 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.