[ZBXNEXT-2804] Short host name to be available as a Macro Created: 2015 May 05  Updated: 2015 May 06

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: Trivial
Reporter: Lior Goikhburg Assignee: Unassigned
Resolution: Unresolved Votes: 4
Labels: hostname, macros, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

For hosts defined as FQDNs in zabbix, it would be nice to have a macro that would return a "short host name".

Currently the only macros that return hostname are:

  • {HOST.HOST<1-9>}
  • {HOST.NAME<1-9>}

Unfortunately they return FQDN.

P.S.:
Short host name is the host name cut at the first dot.



 Comments   
Comment by richlv [ 2015 May 06 ]

they actually return host name as it is configured in zabbix - whether it's host name or fqdn is up to you.

Comment by Marc [ 2015 May 06 ]

In some scenarios this might indeed be helpful.

We use for instance FQDN (consisting of up to seven sub domains) for each host name. Needless to say that this becomes quite cluttered in some frontend sites.
Currently we have to edit each auto-registrated or discovered host manually to put the short host name as visible name in place.

Comment by Lior Goikhburg [ 2015 May 06 ]

I define my hosts as FQDNs (for the number of reasons), I also use auto-registration, which creates the hosts as FQDNs. I'd like to use short host name in WEB scenarios, but unfortunately I don't have such macro. Instead, I edit each host to add a user macro {$SHORT.HOST.NAME} so i can use it in the WEB scenario.

Generated at Thu Apr 25 19:05:51 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.