[ZBXNEXT-2827] Macro support on host inventory Created: 2015 May 22  Updated: 2015 Jun 04

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

Type: New Feature Request Priority: Major
Reporter: Paulo Soares Assignee: Unassigned
Resolution: Unresolved Votes: 3
Labels: inventory, macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Red Hat 8
MySQL 5.5
Zabbix 2.4.3



 Description   

Issue: Use macros to populate Inventory of hosts

I'm trying a way to automate network maps creation. And because of icon mapping uses inventory info, i wanted to put there useful info, in a easy way of course, remembering a huge amount of hosts that we have.

So, i wanted to populate "nickname" inventory field with a simple macro {HOST.NAME} and mass update option. But the inventory can't processes that Macro and nickname still "{HOST.NAME}" and can't change icons accordly the name of the host.

Sorry for any english error, and if someone don't understand fell free to ask.

I really don't want to populate all hosts with his hostname on the inventory tab.



 Comments   
Comment by Aleksandrs Saveljevs [ 2015 May 25 ]

Meanwhile, you can probably populate that inventory field with the value of "system.hostname" item.

Comment by Aleksandrs Saveljevs [ 2015 May 25 ]

See also ZBXNEXT-2828, which describes another workaround using echo[] item.

Comment by Paulo Soares [ 2015 May 25 ]

Aleksandrs, i can't use "system.hostname" because the real hostname not always match the hostname that is assigned to it on Zabbix. On Zabbix i can assign a name with some sort of equipment identification, like "SWT_SAO_PAULO_01" for a switch. That's is why a macro would be so useful to me.

Comment by Paulo Soares [ 2015 May 25 ]

My actual workaround is use mass update for the hosts of the same type, and assign them the same Inventory info and register an icon mapping that matches that inventory info. For now, this solves my problem.

Comment by richlv [ 2015 Jun 03 ]

related to ZBXNEXT-1437

Generated at Wed Apr 24 23:52:27 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.