Hi every one
I want to monitor a soap web service from my Zabbix server.
from different posts, and following link:
I got sure that this feature is possible from version 2.4 onward,But could not find a practical sample.
in detail, what I want is to call a asmx page that contains a series of a web services, along with the request I want to send a xml body like:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:test="http://xxxx.xx/">
<soap:Body>
<test:getActiveServices>
<!--Optional:-->
<test:username>xxxx</test:username>
<!--Optional:-->
<test
assword>xxxxxxxx</test
assword>>
</test:getActiveServices>
</soap:Body>
</soap:Envelope>
and get response from web service to compare it with a specific string. (I did this successfully by postman).
as a workaround, I put the body (above xml) in variable field.
btw, I added Content-Type: application/soap+xml in headers field.
but the results was failure.
after viewing log files, I sow following:
In httpmacro_append_pair() pkey:'<soap:Envelope xmlns:soap' pvalue:'"http://www.w3.org/2003/05/soap-envelope" xmlns:test="http://xxxxx.xx/">'
14649:20160118:152914.299 httpmacro_append_pair() "<soap:Envelope xmlns:soap" not enclosed in {}
14649:20160118:152914.299 End of httpmacro_append_pair():FAIL macro:'(null)'='(null)'
14649:20160118:152914.299 End of http_process_variables():FAIL
can you help me,how to add variable, or where to add my request body? this could be very useful if we can do this by Zabbix.
thanks in advance
I want to monitor a soap web service from my Zabbix server.
from different posts, and following link:
I got sure that this feature is possible from version 2.4 onward,But could not find a practical sample.
in detail, what I want is to call a asmx page that contains a series of a web services, along with the request I want to send a xml body like:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:test="http://xxxx.xx/">
<soap:Body>
<test:getActiveServices>
<!--Optional:-->
<test:username>xxxx</test:username>
<!--Optional:-->
<test
assword>xxxxxxxx</test
assword>></test:getActiveServices>
</soap:Body>
</soap:Envelope>
and get response from web service to compare it with a specific string. (I did this successfully by postman).
as a workaround, I put the body (above xml) in variable field.
btw, I added Content-Type: application/soap+xml in headers field.
but the results was failure.
after viewing log files, I sow following:
In httpmacro_append_pair() pkey:'<soap:Envelope xmlns:soap' pvalue:'"http://www.w3.org/2003/05/soap-envelope" xmlns:test="http://xxxxx.xx/">'
14649:20160118:152914.299 httpmacro_append_pair() "<soap:Envelope xmlns:soap" not enclosed in {}
14649:20160118:152914.299 End of httpmacro_append_pair():FAIL macro:'(null)'='(null)'
14649:20160118:152914.299 End of http_process_variables():FAIL
can you help me,how to add variable, or where to add my request body? this could be very useful if we can do this by Zabbix.
thanks in advance
Comment