Данная проблема появилась после обновления с zabbix 3.0 на 3.2.
ОС: Debian GNU/Linux 8.l
Обновлялся отсюда: deb http://repo.zabbix.com/zabbix/3.2/debian jessie main
Далее о сути проблемы...
Сделал 3 сценария:
1. B.TEST env2 scen - переменная {port}=xxxx указана в веб-сценарии
2. B.TEST env2 step - переменная {port}=xxxx указана в шаге веб-сценария
3. M.TEST env2 direct - нет переменных, нужный порт вбит непосредственно в URL
Проблема:
1я и 2я проверка не отрабатывает, вместо указанного порта стучится на 80 порт, в результате чего сваливается с ошибкой "Couldn't connect to server: Failed to connect to bi1.services.vpn port 80: Connection refused".
3я проврка отрабатывает без проблем.
На версии 3.0 как минимум 1я проверка работала, 2ю не пробовал, сделал только ради теста.
В 1м случае видит переменную {port} на уровне сценария, но в "End substitute_simple_macros" (см лог) ее не учитывает.
В 2м случае не видит переменную {port} на уровне шага сценария, хотя в ответе на запрос она есть (запрос просто выполнил в клиенте, ответ скопипастил сюда).
Было ли у кого, может кто подскажет как решить проблемы бне вписывая порты в URL, или это баг в этой версии и останется только ждать...
Спасибо!
Куски лога, надеюсь все правильно выдернул из логов.
1. Лог сценария "B.TEST env2 scen"
Запрос (взят из лога)
2. Лог сценария "B.TEST env2 step"
Запрос (взят из лога)
ОС: Debian GNU/Linux 8.l
Обновлялся отсюда: deb http://repo.zabbix.com/zabbix/3.2/debian jessie main
Далее о сути проблемы...
Сделал 3 сценария:
1. B.TEST env2 scen - переменная {port}=xxxx указана в веб-сценарии
2. B.TEST env2 step - переменная {port}=xxxx указана в шаге веб-сценария
3. M.TEST env2 direct - нет переменных, нужный порт вбит непосредственно в URL
Проблема:
1я и 2я проверка не отрабатывает, вместо указанного порта стучится на 80 порт, в результате чего сваливается с ошибкой "Couldn't connect to server: Failed to connect to bi1.services.vpn port 80: Connection refused".
3я проврка отрабатывает без проблем.
На версии 3.0 как минимум 1я проверка работала, 2ю не пробовал, сделал только ради теста.
В 1м случае видит переменную {port} на уровне сценария, но в "End substitute_simple_macros" (см лог) ее не учитывает.
В 2м случае не видит переменную {port} на уровне шага сценария, хотя в ответе на запрос она есть (запрос просто выполнил в клиенте, ответ скопипастил сюда).
Было ли у кого, может кто подскажет как решить проблемы бне вписывая порты в URL, или это баг в этой версии и останется только ждать...
Спасибо!
Куски лога, надеюсь все правильно выдернул из логов.
1. Лог сценария "B.TEST env2 scen"
Code:
17262:20161207:134520.737 In process_httptests()
17262:20161207:134520.737 query [txnlev:0] [select h.hostid,h.host,h.name,t.httptestid,t.name,t.variables,t.headers,t.agent,t.authentication,t.http_user,t.http_password,t.http_pr
oxy,t.retries,t.ssl_cert_file,t.ssl_key_file,t.ssl_key_password,t.verify_peer,t.verify_host from httptest t,hosts h where t.hostid=h.hostid and t.nextcheck<=1481107520 and mod(t.h
ttptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]
17262:20161207:134520.738 In substitute_simple_macros() data:'{port}=8180'
17262:20161207:134520.738 In substitute_simple_macros() data:EMPTY
17262:20161207:134520.738 In substitute_simple_macros() data:'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0'
17262:20161207:134520.738 In substitute_simple_macros() data:EMPTY
17262:20161207:134520.738 In substitute_simple_macros() data:EMPTY
17262:20161207:134520.738 In substitute_simple_macros() data:EMPTY
17262:20161207:134520.738 In http_process_variables() variables:'{port}=8180'
17262:20161207:134520.738 In httpmacro_append_pair() pkey:'{port}' pvalue:'8180'
17262:20161207:134520.739 End of httpmacro_append_pair():SUCCEED macro:'(null)'='(null)'
17262:20161207:134520.739 End of http_process_variables():SUCCEED
17262:20161207:134520.739 In process_httptest() httptestid:182 name:'B.TEST env2 scen'
17262:20161207:134520.739 query [txnlev:0] [select httpstepid,no,name,url,timeout,posts,required,status_codes,variables,follow_redirects,retrieve_mode,headers from httpstep where
httptestid=182 order by no]
17260:20161207:134520.739 query without transaction detected
17260:20161207:134520.739 query [txnlev:0] [delete from history where itemid=26340 and clock<1467279840]
17262:20161207:134520.739 In substitute_simple_macros() data:'http://{HOST.CONN}:{port}/BILogon/BI-environment.xml'
17262:20161207:134520.739 query [txnlev:0] [select type,useip,ip,dns,port from interface where hostid=10117 and type in (1,2,3,4) and main=1]
17262:20161207:134520.740 End substitute_simple_macros() data:'http://bi1.services.vpn:{port}/BILogon/BI-environment.xml'
17262:20161207:134520.740 In substitute_simple_macros() data:EMPTY
17262:20161207:134520.740 In substitute_simple_macros() data:EMPTY
17262:20161207:134520.740 In substitute_simple_macros() data:'200'
17262:20161207:134520.740 In substitute_simple_macros() data:EMPTY
17262:20161207:134520.740 In http_substitute_variables() data:'http://bi1.services.vpn:{port}/BILogon/BI-environment.xml'
17262:20161207:134520.740 End of http_substitute_variables() data:'http://bi1.services.vpn:{port}/BILogon/BI-environment.xml'
17262:20161207:134520.740 In http_substitute_variables() data:''
17262:20161207:134520.740 End of http_substitute_variables() data:''
17262:20161207:134520.740 process_httptest() use step "main.test.scen"
17262:20161207:134520.740 In http_substitute_variables() data:''
17262:20161207:134520.740 End of http_substitute_variables() data:''
17262:20161207:134520.740 process_httptest() go to URL "http://bi1.services.vpn:{port}/BILogon/BI-environment.xml"
17262:20161207:134520.760 In process_step_data() rspcode:0 time:0.000000 speed:0.000000
17262:20161207:134520.760 query [txnlev:0] [select type,itemid from httpstepitem where httpstepid=450]
17262:20161207:134520.760 End of process_step_data()
17262:20161207:134520.760 cannot process step "main.test.scen" of web scenario "B.TEST env2 scen" on host "isiao.bi1": Couldn't connect to server: Failed to connect to bi1.services.vpn port 80: Connection refused
Code:
select httpstepid,no,name,url,timeout,posts,required,status_codes,variables,follow_redirects,retrieve_mode,headers from httpstep where httptestid=182;
Ответ
450 1 main.test.scen http://{HOST.CONN}:{port}/BILogon/BI-environment.xml 15 200 1 0
2. Лог сценария "B.TEST env2 step"
Code:
17262:20161207:134550.894 In process_test_data()
17262:20161207:134550.894 query [txnlev:0] [select type,itemid from httptestitem where httptestid=182]
17262:20161207:134550.895 End of process_test_data()
17262:20161207:134550.895 End of process_httptest()
17262:20161207:134550.895 In substitute_simple_macros() data:EMPTY
17262:20161207:134550.895 In substitute_simple_macros() data:EMPTY
17262:20161207:134550.895 In substitute_simple_macros() data:'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)'
17262:20161207:134550.895 In substitute_simple_macros() data:EMPTY
17262:20161207:134550.895 In substitute_simple_macros() data:EMPTY
17262:20161207:134550.895 In substitute_simple_macros() data:EMPTY
17262:20161207:134550.895 In http_process_variables() variables:''
17262:20161207:134550.895 End of http_process_variables():SUCCEED
17262:20161207:134550.895 In process_httptest() httptestid:179 name:'B.TEST env2 step'
17262:20161207:134550.895 query [txnlev:0] [select httpstepid,no,name,url,timeout,posts,required,status_codes,variables,follow_redirects,retrieve_mode,headers from httpstep where
httptestid=179 order by no]
17262:20161207:134550.895 In substitute_simple_macros() data:'http://{HOST.CONN}:{port}/BILogon/BI-environment.xml'
17262:20161207:134550.895 query [txnlev:0] [select type,useip,ip,dns,port from interface where hostid=10117 and type in (1,2,3,4) and main=1]
17262:20161207:134550.896 End substitute_simple_macros() data:'http://bi1.services.vpn:{port}/BILogon/BI-environment.xml'
17262:20161207:134550.896 In substitute_simple_macros() data:EMPTY
17262:20161207:134550.896 In substitute_simple_macros() data:EMPTY
17262:20161207:134550.896 In substitute_simple_macros() data:'200'
17262:20161207:134550.896 In substitute_simple_macros() data:EMPTY
17262:20161207:134550.896 In http_substitute_variables() data:'http://bi1.services.vpn:{port}/BILogon/BI-environment.xml'
17262:20161207:134550.896 End of http_substitute_variables() data:'http://bi1.services.vpn:{port}/BILogon/BI-environment.xml'
17262:20161207:134550.896 In http_substitute_variables() data:''
17262:20161207:134550.896 End of http_substitute_variables() data:''
17262:20161207:134550.896 process_httptest() use step "main.test.step"
17262:20161207:134550.896 In http_substitute_variables() data:''
17262:20161207:134550.896 End of http_substitute_variables() data:''
17262:20161207:134550.896 process_httptest() go to URL "http://bi1.services.vpn:{port}/BILogon/BI-environment.xml"
17262:20161207:134550.903 In process_step_data() rspcode:0 time:0.000000 speed:0.000000
17262:20161207:134550.903 query [txnlev:0] [select type,itemid from httpstepitem where httpstepid=447]
17262:20161207:134550.903 End of process_step_data()
17262:20161207:134550.903 cannot process step "main.test.step" of web scenario "B.TEST env2 step" on host "isiao.bi1": Couldn't connect to server: Failed to connect to bi1.services.vpn port 80: Connection refused
Code:
select httpstepid,no,name,url,timeout,posts,required,status_codes,variables,follow_redirects,retrieve_mode,headers from httpstep where httptestid=179;
Ответ
447 1 main.test.step http://{HOST.CONN}:{port}/BILogon/BI-environment.xml 15 200 {port}=8180 1 0