ZABBIX Forums  
  #1  
Old 07-12-2017, 15:40
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default Zabbix web monitoring issue/clarification

[email protected] all,

I have a weird problem setting up web monitoring for a host.

Let me go a little bit into detail: we use Zabbix 3.2 server and 3 zabbix proxies.
One of the zabbix proxy is monitoring a host (HOST A) which is a HTTP Proxy (Squid).

Now, I want to set up web monitoring from this host through squid.
In the web scenario I´ve setup the HTTP proxy option to http://localhost:3128 but
the check fails with:
Code:
 Step "test" [1 of 1] failed: Couldn't connect to server: couldn't connect to host

Zabbix Server -- -> Zabbix Proxy ---> Host A (Squid/3128) ---> Internet


Any hints are much appreciated.
Reply With Quote
  #2  
Old 14-12-2017, 15:42
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default

sorry to bump this. Any hints?
Reply With Quote
  #3  
Old 11-01-2018, 14:33
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default

no one is using this scenario? Is it even possible? Thx
Reply With Quote
  #4  
Old 11-01-2018, 15:18
AndrewSummer AndrewSummer is offline
Junior Member
 
Join Date: May 2017
Posts: 17
Default

Any hints on the Squid that the zabbix proxy is actually connecting ?
Ping test from zabbix proxy to Squid Host is successful ?
Reply With Quote
  #5  
Old 12-01-2018, 10:43
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default

Hi,

thank you for your reply. Yes, on the squid VM there is the zabbix-agent running and is monitored by zabbix proxy (Linux Template etc.)

Inside Zabbix GUI, I selected the squid host and added a web scenario; nothing special just a http check on http://leo.org

The question is now who is doing the HTTP request: the squid VM (zabbix-agent) or the zabbix-proxy?

Cheers

C.
Reply With Quote
  #6  
Old 12-01-2018, 11:10
AndrewSummer AndrewSummer is offline
Junior Member
 
Join Date: May 2017
Posts: 17
Default

As far as I know, the moment you monitor a host with a proxy the proxy does all the things.
Thats the beauty of a zbx proxy. Zbx server only evaluates and stores the data sent by the proxy.

So the proxy will take care of the web monitoring.

Here is the original feature request:
https://support.zabbix.com/browse/ZBXNEXT-397
Reply With Quote
  #7  
Old 12-01-2018, 14:11
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default

Quote:
Originally Posted by AndrewSummer View Post
As far as I know, the moment you monitor a host with a proxy the proxy does all the things.
Aha ok, then I have to open the firewall ports from the zabbix proxy not the actual squid host. I wasn´t aware of that.

I was confused because you can select the squid vm host (which is monitored by the zabbix proxy) and add there a web scenario. First I thought the source of the HTTP request is the squid host itself.
Reply With Quote
  #8  
Old 12-01-2018, 17:21
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default

Thanks a lot! Now everything is working as expected.
Reply With Quote
  #9  
Old 16-01-2018, 12:08
AndrewSummer AndrewSummer is offline
Junior Member
 
Join Date: May 2017
Posts: 17
Default

Glad I could help
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:30.