{"id":607,"date":"2011-12-02T08:07:47","date_gmt":"2011-12-02T08:07:47","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2011\/12\/02\/brocade-adx-healthcheck-elements\/"},"modified":"2021-07-24T18:23:36","modified_gmt":"2021-07-24T18:23:36","slug":"brocade-adx-healthcheck-elements","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-healthcheck-elements.html","title":{"rendered":"Brocade ADX – Healthcheck Elements"},"content":{"rendered":"

HealthCheck elements provides the ability to perform boolean based expressions against your healthchecks (AND, OR, and NOT).
In this example we will configure a health check that bring up http on webserver1 if :<\/p>\n

    \n
  1. the string STRING1 is matched within the content retrieved via a HTTP GET \/ from server 192.168.1.20<\/li>\n
  2. the string STRING2 is matched within the content retrieved via a HTTP GET \/ from server 192.168.1.21<\/li>\n<\/ol>\n

    Steps<\/strong><\/h2>\n

    First of all we create 2 match lists that define the content that you wish to match.<\/p>\n

    http match-list matchlist1
      default down
      up simple \"STRING1\" log

    http match-list matchlist2
      default down
      up simple \"STRING2\" log<\/pre>\n

    Next we create 2 healthcheck elements and assign the preivouly created matchlists to them.
    Once this is done we create an additional healthcheck boolean elment, using our 2 previous healthcheck elements. We then assign the AND based boolean expression to it.<\/p>\n

    healthck hc1 tcp
      dest-ip 192.168.1.20
      port http
      protocol http
      protocol http url \"GET \/\"
      protocol http content-match matchlist1
      l7-check

    healthck hc2 tcp
      dest-ip 192.168.1.21
      port http
      protocol http
      protocol http url \"GET \/\"
      protocol http content-match matchlist2
      l7-check

    healthck hcboolean boolean
      and hc1 hc2<\/pre>\n

    Our healthcheck boolean is then assigned to our Virutal Server.<\/p>\n

    server real webserver1 192.168.1.10
     port http
     port http healthck hcand
     port http keepalive
     port http url \"HEAD \/\"

    server real webserver2 192.168.1.20
     port http
     port http keepalive
     port http url \"HEAD \/\"<\/pre>\n

    Commands<\/strong><\/h2>\n

    The following commands are especially useful in confirm the status and troubleshooting match-list based health-checks.<\/p>\n