Agent Status¶
Methods for determining agent health and operations on a node.
Status | URL |
---|---|
Get all of the agent statuses | GET /{cluster_id}/agents/ |
Get a single agent status | GET /{cluster_id}/agents/{node_ip} |
Status¶
- GET /{cluster_id}/agents/¶
Displays the status of all agents.
Path arguments: cluster_id – The ID of a cluster returned from GET /cluster-configs
.Example:
curl http://127.0.0.1:8888/Test_Cluster/agents/
Output:
{ "127.0.0.1": { "rack": "rack1", "dc": "Cassandra", "agent_install_type": "checkout", "agent_status": { "version": "6.0.0SNAPSHOT", "monitored_cassandra": { "status": "up", "updated_at": 1456526258 }, "http": { "status": "up", "updated_at": 1456526230 }, "jmx": { "status": "up", "updated_at": 1456526258 }, "last_seen": 1456526258, "storage_cassandra": { "status": "up", "updated_at": 1456526258 }, "stomp": { "status": "up", "updated_at": 1456526258 }, "install_status": { "state": null, "error-message": null } }, "name": "localhost" } }
- GET /{cluster_id}/agents/{node_ip}¶
Displays the status of a single agent.
Path arguments: - cluster_id – The ID of a cluster returned from
GET /cluster-configs
. - node_ip – A node’s ip address.
Example:
curl http://127.0.0.1:8888/Test_Cluster/agents/127.0.0.1
Output:
{ "127.0.0.1": { "rack": "rack1", "dc": "Cassandra", "agent_install_type": "checkout", "agent_status": { "version": "6.0.0SNAPSHOT", "monitored_cassandra": { "status": "up", "updated_at": 1456526258 }, "http": { "status": "up", "updated_at": 1456526230 }, "jmx": { "status": "up", "updated_at": 1456526258 }, "last_seen": 1456526258, "storage_cassandra": { "status": "up", "updated_at": 1456526258 }, "stomp": { "status": "up", "updated_at": 1456526258 }, "install_status": { "state": null, "error-message": null } }, "name": "localhost" } }
- cluster_id – The ID of a cluster returned from