Page 1 of 1
WebService Monitoring SOAP Message Monitoring
Posted: Tue Aug 25, 2015 4:54 pm
by kvaldez
Hi,
I want to monitor, check if its up or down a web service.
Using any of this 2 url:
-Endpoint:
http://localhost:8283/services/service1
or
-WSDL:
http://localhost:8283/services/service1?wsdl
I found that a way of doing this is using the
command, like this:
Code: Select all
# ./check_http -H localhost -p 8283 -u /services/service1?wsdl_type=xml
The output of that sentence is:
Code: Select all
HTTP CRITICAL: HTTP/1.1 500 Internal Server Error - 434 bytes in 0.069 second response time |time=0.069473s;;;0.000000 size=434B;;;0
It Gives HTTP CRITICAL but it also show the response time.
I need some help with this or if anyone know a better method for monitoring a web service please let me know.
Thanks a lot!
-Kvaldez
Re: WebService Monitoring SOAP Message Monitoring
Posted: Tue Aug 25, 2015 5:10 pm
by Box293
Not sure if this helps:
http://jbrazile.blogspot.com.au/2008/07 ... lugin.html
Code: Select all
./check_http -S -k 'SOAPAction: ping' -r 'Current Status.*OK' -T text/xml -P '<s:envelope s="http://schemas.xmlsoap.org/soap/envelope/"><s:header/><s:body><ping/><s:Body><s:Envelope>' -t 10 -m 512 -p 8083 -H 192.168.1.254 -u /Services/Search/search.svc
HTTP OK HTTP/1.1 200 OK - 0.033 second response time |time=0.032722s;;;0.000000 size=897B;512;0;0
Re: WebService Monitoring SOAP Message Monitoring
Posted: Fri Aug 28, 2015 12:22 pm
by kvaldez
Hi,
Thanks for your reply.
It actually works!, by changing some parameters I could make the check_http command ping a web service to look for inactivity.
This is the command that I used:
Code: Select all
./check_http -H 192.168.0.99 -p 8283 -k 'SOAPAction:enviarDocumento' -T application/xml -u /services/ESB_LOG -P '<ping>STATUS</ping>
Output:
Code: Select all
HTTP OK: HTTP/1.1 200 OK - 262 bytes in 0.025 second response time |time=0.025234s;;;0.000000 size=262B;;;0
If the service or server is down the output will be this:
Code: Select all
CRITICAL - Socket timeout after 10 seconds
Thanks a lot!
-kvaldez
Re: WebService Monitoring SOAP Message Monitoring
Posted: Fri Aug 28, 2015 12:52 pm
by hsmith
kvaldez wrote:Hi,
Thanks for your reply.
It actually works!, by changing some parameters I could make the check_http command ping a web service to look for inactivity.
This is the command that I used:
Code: Select all
./check_http -H 192.168.0.99 -p 8283 -k 'SOAPAction:enviarDocumento' -T application/xml -u /services/ESB_LOG -P '<ping>STATUS</ping>
Output:
Code: Select all
HTTP OK: HTTP/1.1 200 OK - 262 bytes in 0.025 second response time |time=0.025234s;;;0.000000 size=262B;;;0
If the service or server is down the output will be this:
Code: Select all
CRITICAL - Socket timeout after 10 seconds
Thanks a lot!
-kvaldez
Awesome! Are we all right to mark this one 'resolved' and lock 'er up?
Re: WebService Monitoring SOAP Message Monitoring
Posted: Fri Aug 28, 2015 3:48 pm
by kvaldez
Yeah, sure