Ad Widget

Collapse

Web scenario for a website on differents servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alucard95
    Member
    • Sep 2008
    • 38

    #1

    Web scenario for a website on differents servers

    Hi all,

    I have a website hosted on 2 servers behind a load balancer. How can I make a web scenario ( 2 in fact ) which check the website on a specific server? Is there a way to specify the host on which to check the website ?

    I don't know if it is possible, i search a solution with http header (like host http://drewish.com/content/2010/03/u..._load_balancer) but i don't how to do this on zabbix web scenario.

    thank you in advance,

    regard,
  • Bernd Hohmann
    Member
    • Mar 2013
    • 46

    #2
    Originally posted by alucard95
    I have a website hosted on 2 servers behind a load balancer. How can I make a web scenario ( 2 in fact ) which check the website on a specific server? Is there a way to specify the host on which to check the website ?
    Well - thats the trick of a loadbalancer: you cannot select a certain host.

    Possible solutions:

    1) The webservers have still a visible, public IP (so you can check each server)

    2) If the webservers are in a different (private) network, you can setup some kind of port forwarding on the loadbalancer (eg. port 5000 is forwarded to the first webserver on 192.168.1.1:80, 5001 to 192.168.1.2:80).

    Bernd

    Comment

    • alucard95
      Member
      • Sep 2008
      • 38

      #3
      thanks for your answer.

      yes, zabbix server has access to the private network. I agree with your solution but i prefer avoid to modify load balancer config. maybe i can use dnat on the zabbix server to force the destination on some port.

      thanks
      Last edited by alucard95; 20-04-2013, 16:57.

      Comment

      Working...