# State field for Process Group in Host Overview

**URL:** <https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978>\
**Category:** Open Q&A\
**Tags:** process-groups, hosts-classic, processes\
**Created:** [March 31, 2025, 6:34pm UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978 "2025-03-31T18:34:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry\_lobenstei](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jerry\_lobenstei](https://community.dynatrace.com/u/jerry_lobenstei)\
**Post date:** [March 31, 2025, 6:34pm UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978/1 "2025-03-31T18:34:42Z")

</div>

Hello Team, **Question:** &nbsp; There are at least half a dozen Icons with a messages that shows up here on Processes in the Host Overview.I have seen variations of messages that are associated to processes, but most recently a couple around Host Group issues.&nbsp;&nbsp;&nbsp; Other than seeing them in the UI.&nbsp; I had no idea they existed unless I ran across them looking at the host overview.&nbsp; &nbsp;I am trying to see if these events are tracked and stored anywhere?&nbsp;&nbsp;&nbsp;I would like to be able to report or alert when these types of things when they occur.&nbsp; In these two cases the agent is installed and injected and gathering data, its just stating inconsistency with host groups.&nbsp; I am looking at reporting on a few of the other status issues that are available.Where is this message coming from?

- I can’t find it in the OneAgent Logs.
- I can’t find it in the OneAgent or Process Logs
- I don’t see a way to get it using the **OneAgent CTL Utility**
- I don’ see a way to get it via the **API** (State ?)
- I don’t see it in Process, PGI, Entity or Events in any of the&nbsp; **Grail data**
- I don’t see it in the OneAgent Health Overview&nbsp;**(State ?)**
- I don’t see it in the system events

**\* It seems like this value is in the Tenant or backend hosting somewhere, but not anywhere else but in the WebUI.** &nbsp; &nbsp;&nbsp;The field is:&nbsp;&nbsp; **State** &nbsp; &nbsp;is anyone&nbsp;aware of this icon/message and who knows where this data may be kept; any kind of information about it.&nbsp; &nbsp;Even better yet will it be in GRAIL?&nbsp; It would be nice to have this **state** field to be able to use DQL on when pulling up OneAgent PG and PGI status.

 ![Image.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/3/3e0206febcdce5dfb140f22993955ce2c51e0d63.jpeg)

---

<div class="post-metadata">

**Author:** ![patryk\_ozimek2](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@patryk\_ozimek2](https://community.dynatrace.com/u/patryk_ozimek2)\
**Post date:** [April 1, 2025, 10:25am UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978/2 "2025-04-01T10:25:10Z")

</div>

Hi,

As far as I know the only possibility to gather this information is API call to /api/v2/entities ([Monitored entities API - GET entities list — Dynatrace Docs](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/entity-v2/get-entities-list)). You can filter the data using entitySelector in order to get only process group instances. So I recommend to create a workflow with the JS step that makes an api call, procesess data and then creates an event.

Best Regards  
Patryk

---

<div class="post-metadata">

**Author:** ![jerry\_lobenstei](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jerry\_lobenstei](https://community.dynatrace.com/u/jerry_lobenstei)\
**Post date:** [April 1, 2025, 12:39pm UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978/3 "2025-04-01T12:39:20Z")

</div>

The Problem here is I think this data is coming form the platform itself and not being exposed to the API pushed into EVENTS.

You won’t see the values from the State field anywhere in the API output.&nbsp; &nbsp;The only data you get is:

- Health state (HEALTHY, UNHEALTHY):&nbsp;healthState(“HEALTHY”)
- Similar data can be found in the&nbsp;OneAgent health overview

---

<div class="post-metadata">

**Author:** ![patryk\_ozimek2](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@patryk\_ozimek2](https://community.dynatrace.com/u/patryk_ozimek2)\
**Post date:** [April 1, 2025, 1:47pm UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978/4 "2025-04-01T13:47:42Z")

</div>

First API call:

```markup
curl -X 'GET' \
  'https://{environmentid}.live.dynatrace.com/api/v2/entities?entitySelector=type%28%22PROCESS_GROUP_INSTANCE%22%29' \
  -H 'accept: application/json; charset=utf-8' \
  -H 'Authorization: Api-Token <token>’

```

Then you iterate through all entityId from the response:

Make API call

```markup
curl -X 'GET' \
  'https://{environmentid}.live.dynatrace.com/api/v2/monitoringstate?entitySelector=entityId%28%22PROCESS_GROUP_INSTANCE-<id>%22%29' \
  -H 'accept: application/json; charset=utf-8' \
  -H 'Authorization: Api-Token <token>’

```

And in the response you will see for example:

```markup
"totalCount": 1,
  "monitoringStates": [
    {
      "entityId": "PROCESS_GROUP_INSTANCE-<id>”,
      "state": "restart_required",
      "severity": "warning",
      "params": [
        {
          "key": "pids",
          "values": ""
        }
      ]
    }
  ],
  "pageSize": 500
}

```

The whole flow can be executed in the [Dynatrace Workflow](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/quickstart).

Best Regards  
Patryk

---

<div class="post-metadata">

**Author:** ![jerry\_lobenstei](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jerry\_lobenstei](https://community.dynatrace.com/u/jerry_lobenstei)\
**Post date:** [April 1, 2025, 5:02pm UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978/5 "2025-04-01T17:02:16Z")

</div>

I must of typed something wrong.&nbsp; Then I thought it could it be because I am trying this on a Process running in a POD/Container?&nbsp; &nbsp;But I got it to work.&nbsp; &nbsp;Thanks for the assistance.

| 
##### Response body
Download

```
{ "totalCount": 1, "monitoringStates": [ {
      "entityId": "PROCESS_GROUP_INSTANCE-CCC9F0446F895C6A", "state": "agent_injection_suppression", "severity": "info", "params": [ {
          "key": "reason", "values": "statically_linked_go_injection_disabled"
        }
      ]
    }
  ],
  "pageSize": 500
}
```

 |

---

<div class="post-metadata">

**Author:** ![jerry\_lobenstei](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jerry\_lobenstei](https://community.dynatrace.com/u/jerry_lobenstei)\
**Post date:** [April 1, 2025, 5:54pm UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978/6 "2025-04-01T17:54:41Z")

</div>

I also found it can be run a Notebook using the Code feature.&nbsp; &nbsp;You can run the JavaScript and call the API and process it within the notebook and produce the tables results.

---

<div class="post-metadata">

**Author:** ![patryk\_ozimek2](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@patryk\_ozimek2](https://community.dynatrace.com/u/patryk_ozimek2)\
**Post date:** [April 1, 2025, 5:56pm UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978/7 "2025-04-01T17:56:44Z")

</div>

It is true but you wanted to create an alert based on this data and it can be done only in the workflows

---

<div class="post-metadata">

**Author:** ![jerry\_lobenstei](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jerry\_lobenstei](https://community.dynatrace.com/u/jerry_lobenstei)\
**Post date:** [April 1, 2025, 6:12pm UTC](https://community.dynatrace.com/t/state-field-for-process-group-in-host-overview/50978/8 "2025-04-01T18:12:26Z")

</div>

Correct!&nbsp; &nbsp; They are very happy with the Notebook.&nbsp; &nbsp; Alerting will be the next discussion.&nbsp; &nbsp; The customer is just starting to look at workflows.&nbsp; &nbsp; But I did give them a good overview of what we would require and next steps.
