# How can i set up agent monitoring for a process?

**URL:** <https://community.dynatrace.com/t/how-can-i-set-up-agent-monitoring-for-a-process/36943>\
**Category:** Real User Monitoring\
**Tags:** mobile-monitoring, oneagent, hosts-classic\
**Created:** [October 18, 2022, 4:25pm UTC](https://community.dynatrace.com/t/how-can-i-set-up-agent-monitoring-for-a-process/36943 "2022-10-18T16:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashiD](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ashid/32/15650_2.png) [@ashiD](https://community.dynatrace.com/u/ashiD)\
**Post date:** [October 18, 2022, 4:25pm UTC](https://community.dynatrace.com/t/how-can-i-set-up-agent-monitoring-for-a-process/36943/1 "2022-10-18T16:25:04Z")

</div>

How can i set up agent monitoring for a process?

for example i want for monitor the ssh process on a linux server.

Thanks.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [October 18, 2022, 4:51pm UTC](https://community.dynatrace.com/t/how-can-i-set-up-agent-monitoring-for-a-process/36943/2 "2022-10-18T16:51:53Z")

</div>

Hi [@ashiD](https://community.dynatrace.com/user/55304) , it will depends on what do you need to monitor. Is it availability? Is its performance?

First you need to see if the process is identified automatically by Dynatrace. If not, you can define your own detection rule, [Process group detection — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/process-groups/configuration/pg-detection)

sshd , for example it is not listed as individual process in Dynatrace, and since it is not a deep monitored process, you can create a [declarative process group](https://www.dynatrace.com/support/help/how-to-use-dynatrace/process-groups/configuration/pg-detection#declare).

If you are looking for process availability only, you can do it [in host settings.](https://www.dynatrace.com/support/help/shortlink/process-availability)

If you are looking for performance (cpu/mem) monitoring, once defined the proper process group , you can use the [generic metrics](https://www.dynatrace.com/support/help/shortlink/built-in-metrics#generic) and create a [metric event](https://www.dynatrace.com/support/help/shortlink/metric-events-for-alerting) for it.
