Hi everyone, stepping on well-known struggle - getting web checks to work.
I'm trying to configure a successful web check to two different host that are behind a proxy. executing the relevant URL always redirects to ONE of the two available web servers. i'm trying to pinpoint the check to query every time the same web server instead of pinging between the two.
When i use curl from Zabbix server everything works for example: curl http://***.***.***.***/health.html --header "host:contoso.domain.net" -vvv - it gets the response from the single host as expected.
Applying this curl on a web scenario step - fails with 400 in return.
i configure the URL as - http://***.***.***.***/health.html
I configure the Headers section with - host:contoso.domain.net
+ follow redirects is on (not sure if its relevant for my case.)
What am i missing?
Thanks in advance guys.
I'm trying to configure a successful web check to two different host that are behind a proxy. executing the relevant URL always redirects to ONE of the two available web servers. i'm trying to pinpoint the check to query every time the same web server instead of pinging between the two.
When i use curl from Zabbix server everything works for example: curl http://***.***.***.***/health.html --header "host:contoso.domain.net" -vvv - it gets the response from the single host as expected.
Applying this curl on a web scenario step - fails with 400 in return.
i configure the URL as - http://***.***.***.***/health.html
I configure the Headers section with - host:contoso.domain.net
+ follow redirects is on (not sure if its relevant for my case.)
What am i missing?
Thanks in advance guys.
Comment