Forum Discussion

Koalan's avatar
Koalan
Icon for Cirrus rankCirrus
Nov 05, 2019

F5 Monitor - Need help

Hi,

 

So I have this friend who want a health check based on this:

 

F5 should check for:

curl -d @"xml_test.xml" -H "Content-Type: application/xml" -X POST http://usabc-31.abc.com/wfc/XmlService

 

the response should be:

 

<?xml version='1.0' encoding='UTF-8' ?>

 

 

<Kronos_WFC TimeStamp="10/24/2019 11:57PM GMT-06:00" version="1.0" WFCVersion="8.1.3.1531">

  <Response Status="Success" Action="ping" Object="System">

  </Response></Kronos_WFC>

 

 

which is the .xml file

 

Can you help me please to have a health monitor for this kind of scenario, btw usabc-31.abc.com is a server being load balanced on our F5.

 

  • this is the complete curl if this will help:

     

    curl -i http://10.38.7.34/wfc/XmlService

     

    HTTP/1.1 200 OK

    Cache-Control: no-cache, no-store, must-revalidate

    Pragma: no-cache

    Content-Type: text/xml;charset=UTF-8

    Content-Language: en-

    Server: 

    Set-Cookie: JSESSIONID=MN6llVUFVYrsx7PNDWV-u1ORx8_l5pfIKuYafBgr.uszyc-kronosp31; path=/; HttpOnly

    Referrer-Policy: same-origin

    X-XSS-Protection: 1; mode=block

    X-Content-Type-Options: nosniff

    Date: Tue, 05 Nov 2019 06:24:56 GMT

    Content-Length: 245

     

    <?xml version='1.0' encoding='UTF-8' ?>

     

    <Kronos_WFC>

      <Response Status="Failure" Message="WFP-01110 The MIME type of the request is invalid. Type Found: . Valid types: text/xml, application/xml." ErrorCode="1332">

      </Response></Kronos_WFC>