# Possible to check if a process (batch job) is running long based on PID or something?

**URL:** <https://community.dynatrace.com/t/possible-to-check-if-a-process-batch-job-is-running-long-based-on-pid-or-something/37438>\
**Category:** Open Q&A\
**Tags:** processes\
**Created:** [November 23, 2022, 5:46pm UTC](https://community.dynatrace.com/t/possible-to-check-if-a-process-batch-job-is-running-long-based-on-pid-or-something/37438 "2022-11-23T17:46:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shakib](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@shakib](https://community.dynatrace.com/u/shakib)\
**Post date:** [November 23, 2022, 5:46pm UTC](https://community.dynatrace.com/t/possible-to-check-if-a-process-batch-job-is-running-long-based-on-pid-or-something/37438/1 "2022-11-23T17:46:59Z")

</div>

We are trying to figure out if such a functionality exists within Dynatrace. So if a batch job is running too long then maybe generate an alert for it. Anyone know if this is possible?

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [November 24, 2022, 10:33am UTC](https://community.dynatrace.com/t/possible-to-check-if-a-process-batch-job-is-running-long-based-on-pid-or-something/37438/2 "2022-11-24T10:33:13Z")

</div>

Hi [@shakib](https://community.dynatrace.com/user/47920),

I have two high level ideas:

1. check this AG extension. Maybe you can reuse the code base of it.

[Control-M Jobs | Dynatrace Hub](https://www.dynatrace.com/hub/detail/control-m-jobs/?query=job#details)

2. Check this ingestion type. Maybe you can collect some input about your PID and ingest it to DT.

[script ingest - Dynatrace Community](https://community.dynatrace.com/topic/198860)

[OneAgent metric API | Dynatrace Docs](https://www.dynatrace.com/support/help/extend-dynatrace/extend-metrics/ingestion-methods/oneagent-metric-api)

I hope it helps.

Best regards,

Mizső
