[ZBX-4098] HOST.CONN macro in external checks loses first character Created: 2011 Sep 01  Updated: 2017 May 30  Resolved: 2011 Sep 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 2.0.0

Type: Incident report Priority: Blocker
Reporter: richlv Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: externalchecks, macros, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

external check key :

test.sh["<${HOST.CONN}>"]

host's ip = 127.0.0.1

printing all parameters to a file results in :

127.0.0.1 <27.0.0.1>

note that other macros should be checked as well; this might also be present in 1.8



 Comments   
Comment by Alexander Vladishev [ 2011 Sep 07 ]

test.sh["<${HOST.CONN}>"] will be converted by Zabbix server to test.sh["<$127.0.0.1>"].
Shell recognize $1 as empty variable and result will be printed as <27.0.0.1>

Generated at Fri Apr 26 04:28:17 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.