...
SKLTP probe komponent - konfiguration
Verifiera - version 3.x, 4.x
Curl anrop till tjänsten, säkerställ att port och adress stämmer överens med vad som står i mule-probe-config[-override].properties, PROBESERVICE_INBOUND_URL
Kodblock |
---|
curl -v http://localhost:8081/mule-probe/probe |
OK svar
Kodblock |
---|
< HTTP/1.1 200 OK < Date: Mon, 25 Jan 2016 14:16:40 +0000 < Server: Mule Core/3.7.0 < Content-Type: application/json < Content-Length: 2 < http.status: 200 < Connection: close < * Closing connection 0 OK |
Probe är konfigurerad till DOWN
Konfigureras i probe-filen, se SKLTP probe komponent - konfiguration):
Kodblock |
---|
< HTTP/1.1 503 Service Unavailable < Date: Mon, 25 Jan 2016 1415:3517:2753 +0000 < Server: Mule Core/3.7.0 < Content-Type: application/json < Content-Length: 1009880 < http.status: 503 < Connection: close < * Closing connection 0 [{"name":"engagemangsindex","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":false,"probeMessage":"ConfiguredMuleprobe probeFile target/probeService/probeFile.txt does not exist, muleprobe signals unavailable when file is missing signals DOWN, no check against producers will be performed","serviceAvailable":false},{"name":"fkadapter","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":false,"probeMessage":"Muleprobe probeFile signals DOWN, no check against producers will be performed","serviceAvailable":false},{"name":"fkadaptervp","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":false,"probeMessage":"Muleprobe probeFile signals DOWN, no check against producers will be performed","serviceAvailable":false}] |
Probens probe-fil är borttagen
Se SKLTP probe komponent - konfiguration för konfiguration av probe-filen.
Kodblock |
---|
< HTTP/1.1 503 Service Unavailable < Date: Wed, 24 Feb 2016 09:00:11 CET < Server: Mule Core/3.3.1 < Content-Type: application/json < http.status: 503 < Transfer-Encoding: chunked < Connection: close < * Closing connection 0 {"serviceAvailable":false,"probeAvailable":false,"probeMessage":"Configured probeFile target/probeService/probeFile.txt does not exist, muleprobe signals unavailable when file is missing"} |
Felsöka eller inspektera konfiguration
Med verbose=true flaggan på returneras probens konfiguration för de konfigurerade tjänsterna:
Kodblock |
---|
curl -v http://localhost:8081/mule-probe/probe?verbose=true |
Exempel på svar:
Kodblock |
---|
< HTTP/1.1 200 OK < Date: Mon, 25 Jan 2016 15:14:26 +0000 < Server: Mule Core/3.7.0 < Content-Type: application/json < Content-Length: 2230 < http.status: 200 < Connection: close < * Closing connection 0 [{"name":"engagemangsindex","url":"serviceAvailable":falsehttp://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":true,"probeMessage":"Muleprobe probeFile signals OK","serviceAvailable":true,"serviceMessage":"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><PingForConfigurationResponse xmlns:ns2=\"urn:riv:itintegration:registry:1\" xmlns=\"urn:riv:itintegration:monitoring:PingForConfigurationResponder:1\"><version>1.0</version><pingDateTime>20160125041426</pingDateTime><configuration><name>Applikation</name><value>VP</value></configuration></PingForConfigurationResponse></soap:Body></soap:Envelope>","connecttimeout":"1000","responsetimeout":"2000"},{"name":"vpfkadapter","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":falsetrue,"probeMessage":"ConfiguredMuleprobe probeFile target/probeService/probeFile.txt does not exist, muleprobe signals unavailable when file is missing","serviceAvailable":false signals OK","serviceAvailable":true,"serviceMessage":"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><PingForConfigurationResponse xmlns:ns2=\"urn:riv:itintegration:registry:1\" xmlns=\"urn:riv:itintegration:monitoring:PingForConfigurationResponder:1\"><version>1.0</version><pingDateTime>20160125041426</pingDateTime><configuration><name>Applikation</name><value>VP</value></configuration></PingForConfigurationResponse></soap:Body></soap:Envelope>","connecttimeout":"1000","responsetimeout":"2000"},{"name":"vp","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":true,"probeMessage":"Muleprobe probeFile signals OK","serviceAvailable":true,"serviceMessage":"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><PingForConfigurationResponse xmlns:ns2=\"urn:riv:itintegration:registry:1\" xmlns=\"urn:riv:itintegration:monitoring:PingForConfigurationResponder:1\"><version>1.0</version><pingDateTime>20160125041426</pingDateTime><configuration><name>Applikation</name><value>VP</value></configuration></PingForConfigurationResponse></soap:Body></soap:Envelope>","connecttimeout":"3000","responsetimeout":"2000"}] |
Verifiera - före version
...
3.x
Curl anrop till tjänsten, säkerställ att port och adress stämmer överens med vad som står i mule-probe-config[-override].properties, PROBESERVICE_INBOUND_URL
...