# Zombie process monitoring and alerting

**URL:** <https://community.dynatrace.com/t/zombie-process-monitoring-and-alerting/39015>\
**Category:** Alerting\
**Tags:** oneagent, processes, problems-classic\
**Created:** [March 27, 2023, 11:12am UTC](https://community.dynatrace.com/t/zombie-process-monitoring-and-alerting/39015 "2023-03-27T11:12:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_g1997](https://avatars.discourse-cdn.com/v4/letter/v/b3f665/32.png) [@Vikas\_g1997](https://community.dynatrace.com/u/Vikas_g1997)\
**Post date:** [March 27, 2023, 11:12am UTC](https://community.dynatrace.com/t/zombie-process-monitoring-and-alerting/39015/1 "2023-03-27T11:12:51Z")

</div>

Hi Team,

Is there any way to monitor the zombie processes and create an alerting profile for it?

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [April 16, 2023, 12:50am UTC](https://community.dynatrace.com/t/zombie-process-monitoring-and-alerting/39015/2 "2023-04-16T00:50:14Z")

</div>

Hi&nbsp;[@Vikas\_g1997](https://community.dynatrace.com/user/57336),

as you know, a zombie process refers to any process that is essentially removed from the system as ‘defunct’, but still somehow resides in the processor’s memory as a ‘zombie’.

so it will not be detected by OneAgent, however, I’m thinking of a workaround that might work, you can use [the generic Linux command extension](https://www.dynatrace.com/hub/detail/generic-linux-commands/?query=linux+com#overview) and run the command such as (**ps -A -ostat,pid,ppid | grep -e ‘[zZ]’**) to get process ID, note that this extension will consume DDUs, This extension will consume 0.001&nbsp;[DDU](https://www.dynatrace.com/support/help/manage/monitoring-consumption/davis-data-units/metric-cost-calculation)&nbsp;per metric datapoint ingested.

you can find multiple references online regarding how to identify and remove a zombie process

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 16, 2023, 9:27am UTC](https://community.dynatrace.com/t/zombie-process-monitoring-and-alerting/39015/3 "2023-04-16T09:27:37Z")

</div>

Hi,

Following [@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007) idea, you can use [Metric scripting integration](https://www.dynatrace.com/support/help/shortlink/pipe-metric-ingestion) to ingest to Dynatrace how many zombie processes you have.

And then, you can play with [metric events](https://www.dynatrace.com/support/help/shortlink/metric-events) and alerting profiles.

Best regards
