Get the Proxy parents status with the Web API
This API lets you check the status of connections with the parent servers you've configured in the proxy service.
This API lets you check the status of connections with the parent servers you've configured in the proxy service.
This feature is available on Artica v4.50 Service Pack 1 or Artica v4.50 Hotfix 20240111-15
- To monitor this part, ensure you have correctly set the Web API service to listens external network.
- With an HTTP client query the Web API service using
GETto
http://1.2.3.4:9503/proxy/peers/status
You will receive a json
{
"peers": [
{
"parent_name": "Peer11",
"parent_addr": "192.168.1.190",
"parent_port": 3128,
"status": "Up",
"fetches": 2
},
{
"parent_name": "Peer21",
"parent_addr": "192.168.90.65",
"parent_port": 3128,
"status": "Down",
"fetches": 0
}
]
}
- if the status is
Down, this means that your proxy is not able to reach the address of the defined Proxy Parent. - The fetches field Indicates the number of requests sent to the parent proxy since the service was last started.