-
I want to be able to monitor if worker nodes are up/down. I see entries in the primary node activity log if connectivity is lost but haven't seen anything to alert me if one is down. Is there an API which can give status of a worker node, similar to a ping? Or is there a different way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There's an undocumented API you can use. See this discussion here: #674 First, you need to create an administrative API key. That process is described here: #479 Then you can hit the new
{
"code": 0,
"servers": {
"mini.local": {
"hostname": "mini.local",
"ip": "192.168.3.46",
"master": 1,
"uptime": 95,
"data": {
"cpu": 5.7,
"mem": 57663488
},
"disabled": 0
},
"joework.local": {
"hostname": "joework.local",
"ip": "192.168.3.40",
"master": 0,
"uptime": 0,
"data": {},
"disabled": true
}
}
} Notice the Please note that it takes up to a minute to "realize" that a server has gone offline. |
Beta Was this translation helpful? Give feedback.
There's an undocumented API you can use. See this discussion here: #674
First, you need to create an administrative API key. That process is described here: #479
Then you can hit the new
get_servers
API, which will tell you which servers are up/down. Look for thedisabled
property inside each server object. It'll be set totrue
if the server is down.Example: