[ZBX-1909] Zabbix does not validate global macros in simple checks items Created: 2010 Feb 02  Updated: 2017 May 30  Resolved: 2011 Sep 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8
Fix Version/s: 1.8.8

Type: Incident report Priority: Major
Reporter: Vytautas Assignee: Unassigned
Resolution: Fixed Votes: 6
Labels: macros, usermacros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

zabbix 1.8


Issue Links:
Duplicate
is duplicated by ZBX-1999 Simple checks should be done without ... Closed
is duplicated by ZBX-3456 can't create simple check with user m... Closed
is duplicated by ZBX-4162 User macro does not allowed to be use... Closed
is duplicated by ZBX-3799 Frontend should expand macro in items... Closed

 Description   

After setting global macro {$SSH} value to 22, create item with ssh simple check.

created key:
ssh,{$SSH} or ssh[,

{SSH}

] - none work

server complains:
820:20100201:221035.776 Port number must be numeric in [ssh[,22]]



 Comments   
Comment by richlv [ 2010 Feb 02 ]

confirming in trunk rev 9821. probably server should first expand macro properly there, then frontend should be modified to allow that as well

Comment by Aleksandrs Saveljevs [ 2011 Apr 11 ]

In the latest 1.8 branch, our GUI does not allow to save "ssh,{$SSH}" item because of the macro.

Comment by Alexey Fukalov [ 2011 Sep 22 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-1909

Comment by Alexey Fukalov [ 2011 Sep 22 ]

svn://svn.zabbix.com/branches/1.8 21837

Comment by richlv [ 2011 Sep 22 ]

just a note that this fix is for 1.8 only and for trunk simple check syntax is changed in ZBXNEXT-485

Generated at Sat Apr 27 07:53:49 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.