Ad Widget

Collapse

Monitor SOAP requests

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepaksharma1717
    Junior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2018
    • 7

    #1

    Monitor SOAP requests

    Hi All,

    I am looking to monitor SOAP requests on Zabbix, during one of the recent meetup, I got to know that we can achieve this using Zabbix HTTP agent. Can anyone help me out with some references and examples or point me to right links. I will be using Zabbix 5.0.
    Thanks in advance, more specific questions I might ask, once I get started. I tried to find something on Google but no help.
  • Zablab
    Junior Member
    • Jan 2022
    • 28

    #2
    Bump.

    I'm needing to monitor some sites & one of them requires a SOAP POST. I've configured it similar to what I have in Postman & formatted it to fit Zabbix but I get a 400 response.

    Not sure if it's a little configuration mishap or if this is even possible to begin with, not seeing much for documentation on this.

    I have my URL & Query fields filled out to append desired value at the end of the address.

    Using Agent: Zabbix

    I'm using Raw Data and using a standard SOAP format:

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <stuff>
    <things>
    </soap:Body>
    </soap:Envelope>

    I have Headers configured, as far as I know they are correct:

    Content-Length : length
    Content-Type : text/xml; charset=utf-8
    Host : stuff.things.com

    Success would = the following string and status of 200:
    <IsApproved>true</IsApproved>

    So far no luck. Tried a few different things
    Last edited by Zablab; 11-08-2022, 22:45.

    Comment


    • Zablab
      Zablab commented
      Editing a comment
      Update:

      I think I may have figured this out (getting an OK status on my Required String & Required Status) using a few tools out there to test formatting and what-not and test in real-time.
      Postman doesn't require some of these additional formatting hoops so treated approached it as a curl string.

      I added a SOAPAction to my Headers. (this can vary but before I wasn't adding it.)
      Set Content-Type: text/xml
      Set Accept-Encoding: gzip, deflate
Working...