Ladda ner
Ladda ner mule-probe-[version].zip från http://central.maven.org/maven2/se/skltp/components/mule-probe/
Installera
Se nedan generella instruktion för att installera mule applikationer.
Installation av tjänster/applikationer i Mule
OBS! Vi startar applikationer i en fix startordning, här är det viktigt att vi startar Probe sist! Se Installationsmanual Mule för mer information.
Konfigurera
SKLTP probe komponent - konfiguration
Verifiera - version 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
curl -v http://localhost:8081/mule-probe/probe
OK svar
< 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
< HTTP/1.1 503 Service Unavailable < Date: Mon, 25 Jan 2016 14:35:27 +0000 < Server: Mule Core/3.7.0 < Content-Type: application/json < Content-Length: 1009 < 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":"Configured probeFile target/probeService/probeFile.txt does not exist, muleprobe signals unavailable when file is missing","serviceAvailable":false},{"name":"fkadapter","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":false,"probeMessage":"Configured probeFile target/probeService/probeFile.txt does not exist, muleprobe signals unavailable when file is missing","serviceAvailable":false},{"name":"vp","url":"http://localhost:8090/mule-probe/teststub-services/PingForConfiguration/1/rivtabp21?connector=soitoolkit-http-connector","probeAvailable":false,"probeMessage":"Configured probeFile target/probeService/probeFile.txt does not exist, muleprobe signals unavailable when file is missing","serviceAvailable":false}]
Verifiera - före version 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
curl -i http://localhost:8081/rest/probe/status
OK svar
HTTP/1.1 200 OK Date: Mon, 25 Aug 2014 08:55:09 CEST Server: Mule Core/3.3.1 Content-Type: application/json http.status: 200 X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACRjMTE4ZjM1YS0yYzI0LTExZTQtOWVjZC1jMTk3M2EwYWEwZjBwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4 X-MULE_ENCODING: UTF-8 Transfer-Encoding: chunked Connection: close [{"url":null,"serviceAvailable":true,"connecttimeout":null,"responsetimeout":null,"name":"muleprobe","message":"Probefile signals: OK\n"}]%
Probe är konfigurerad till DOWN
HTTP/1.1 503 Service Unavailable Date: Mon, 25 Aug 2014 08:59:14 CEST Server: Mule Core/3.3.1 Content-Type: application/json http.status: 503 X-MULE_SESSION: rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACQ1MzA4OTFlMy0yYzI1LTExZTQtOWVjZC1jMTk3M2EwYWEwZjBwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4 X-MULE_ENCODING: UTF-8 Transfer-Encoding: chunked Connection: close [{"url":null,"serviceAvailable":false,"connecttimeout":null,"responsetimeout":null,"name":"muleprobe","message":"Probefile signals: DOWN\n"}]%