# state of nodes

**URL:** <https://community.dynatrace.com/t/state-of-nodes/19542>\
**Category:** Alerting\
**Tags:** problem-detection, docker\
**Created:** [June 11, 2020, 7:14pm UTC](https://community.dynatrace.com/t/state-of-nodes/19542 "2020-06-11T19:14:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alangdima](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@alangdima](https://community.dynatrace.com/u/alangdima)\
**Post date:** [June 11, 2020, 7:14pm UTC](https://community.dynatrace.com/t/state-of-nodes/19542/1 "2020-06-11T19:14:20Z")

</div>

Hi everyone, is there any way to validate the state (started,stopped,failed,restarted) from the api nodes of the applications?

I’m asking this because when some nodes are turned off or stopped, Davis doesn’t give any alert.

Thanks a lot, regards!!

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [June 11, 2020, 7:30pm UTC](https://community.dynatrace.com/t/state-of-nodes/19542/2 "2020-06-11T19:30:36Z")

</div>

This would be a good use case for Synthetic HTTP Monitors, assuming the APIs are HTTP-based.

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [June 11, 2020, 7:31pm UTC](https://community.dynatrace.com/t/state-of-nodes/19542/3 "2020-06-11T19:31:54Z")

</div>

Also, if you have or can create a health check API you can use it to send events to Dynatrace via our Events API.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [June 12, 2020, 8:31am UTC](https://community.dynatrace.com/t/state-of-nodes/19542/4 "2020-06-12T08:31:54Z")

</div>

You can use REST **/rest/state** (no auth) to check the server’s status - e.g. RUNNING - this can be used for Synthetic checks easily.

More info you can find under:

```auto
/api/v1.0/onpremise/cluster

```

#### 

example response:

```auto
[
  {
    "id": 1,
    "clusterMemberAddress": "1.1.2.2:5701",
    "operationState": "RUNNING",
    "buildVersion": "1.194.0",
    "osInfo": "Platform: Linux, Version: 5.3.0-1023-aws, Architecture: amd64, Processors: 16",
    "jvmInfo": "VM: OpenJDK 64-Bit Server VM, Version: 1.8.0_252, Vendor: AdoptOpenJDK, Memory [maxMemory=17408M, initHeap=17408M, maxHeap=17408M, usedMeta=12M, committedMeta=12M, totalPhysicalMemory=62851M, freePhysicalMemory=40939M]",
    "dnsEntryPointUris": [],
    "restServiceRootUris": [
      "https://ip-1-1-2-2.eu-west-1.compute.internal:8021/api/v1.0",
      "https://1.1.2.2:8021/api/v1.0"
    ],
    "communicationUris": [
      "http://ip-1-1-2-2.eu-west-1.compute.internal:8020/communication",
      "http://1.1.2.2:8020/communication"
    ]
  },

```

for each node. You can also find there “operationState” field. States can be:

```auto
OFFLINE(0), // initial - server not running
STARTUP(1), // startup is in progress
STARTUP_CANCELED(2), // startup was canceled due to some severe problem
RUNNING(3), // fully operational, accepts all data, fully visible
RUNNING_FORSAKEN(4), // fully operational but invisible for ALL Agents, no paths should be sent to the server. configurable via config.properties
SHUTDOWN_PHASED_OUT(5), // prior to shutdown ==> still operate messages but is not visible to agents anymore
SHUTDOWN(6), // shutdown is in progress
// special modes
EMERGENCY(7), // some emergency situation (e.g. low memory) - may happen during startup/shutdown or normal operation
STARTUP_SUSPENDED(8), // basic startup finished but not connected to cluster or database, no tenants started
DATABASE_DISCONNECTED(9), // database got disconnected during runtime, similar to READ_ONLY mode but without config requests
UNDEFINED(10), // not known

SHUTDOWN_IMMINENT(11); // state before SHUTDOWN_PHASED_OUT, rest api still works in this state, even if server was (is) in emergency

```

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [June 12, 2020, 12:48pm UTC](https://community.dynatrace.com/t/state-of-nodes/19542/5 "2020-06-12T12:48:19Z")

</div>

I assumed the question was about application API enpoints…but maybe this is a better take!

---

<div class="post-metadata">

**Author:** ![mark\_pundurs](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mark\_pundurs](https://community.dynatrace.com/u/mark_pundurs)\
**Post date:** [November 23, 2020, 2:56pm UTC](https://community.dynatrace.com/t/state-of-nodes/19542/6 "2020-11-23T14:56:46Z")

</div>

[@Radoslaw S.](https://answers.dynatrace.com/users/5499/view.html) what is the complete URL for “/api/v1.0/onpremise/cluster”? Thanks!

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [November 23, 2020, 3:54pm UTC](https://community.dynatrace.com/t/state-of-nodes/19542/7 "2020-11-23T15:54:34Z")

</div>

You prefix that with your cluster node IP or cluster URL.
