Practique Server Monitoring

This feature is available since Practique 4.1.9.

Practique allows IT teams to monitor health of the Practique Server and provides API to integrate Practique Status page with 3rd party monitoring tools. At the moment status page provides simple JSON API which provides detailed information about the Server and server sub-services.

Practique Status page is available at https://{host}/status where {host} designates your Practique instance host.

Options and JSON API

https://{host}/status (alias for ?format=json)

{"status": "OK", "status_code": 200, "name": "{host}"}
or
{"status": "ERROR", "status_code": 500, "message": " wsi:[Errno 111] Connection refused", "name": "{host}"}

https://{host}/status?format=plain (Nagios like interface)

OK
or
CRITICAL wsi:[Errno 111] Connection refused

https://{host}/status?format=full (pretty formatted JSON including service detail and configuration variables)

{
    "status": "OK", 
    "status_code": 200, 
    "config": {
        "ios_app_version": "app >=2.1.0, <4.13", 
        "auto_approve": true, 
        "database": "practique"
    }, 
    "services": [
        {
            "status": "OK", 
            "code": 200, 
            "name": "http"
        }, 
        {
            "status": "OK", 
            "message": "", 
            "code": 200, 
            "name": "wsi"
        }, 
        {
            "status": "OK", 
            "message": "", 
            "code": 200, 
            "name": "celery"
        }
    ], 
    "name": "{host}"
}

or

{
    "status": "ERROR", 
    "name": "{host}", 
    "status_code": 500, 
    "services": [
        {
            "status": "OK", 
            "code": 200, 
            "name": "http"
        }, 
        {
            "status": "ERROR", 
            "message": "[Errno 111] Connection refused", 
            "code": 500, 
            "name": "wsi"
        }, 
        {
            "status": "OK", 
            "message": "", 
            "code": 200, 
            "name": "celery"
        }
    ], 
    "message": " wsi:[Errno 111] Connection refused", 
    "config": {
        "ios_app_version": "app >=2.1.0, <4.13", 
        "auto_approve": true, 
        "database": "practique"
    }
}