# Why doesn't OneAgent start to monitor Apache process after restart?

**URL:** <https://community.dynatrace.com/t/why-doesnt-oneagent-start-to-monitor-apache-process-after-restart/37086>\
**Category:** Troubleshooting\
**Tags:** oneagent, apache\
**Created:** [November 2, 2022, 7:45am UTC](https://community.dynatrace.com/t/why-doesnt-oneagent-start-to-monitor-apache-process-after-restart/37086 "2022-11-02T07:45:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adham\_sabry](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adham_sabry/32/15887_2.png) [@adham\_sabry](https://community.dynatrace.com/u/adham_sabry)\
**Post date:** [November 2, 2022, 7:45am UTC](https://community.dynatrace.com/t/why-doesnt-oneagent-start-to-monitor-apache-process-after-restart/37086/1 "2022-11-02T07:45:21Z")

</div>

Following installation of OneAgent, your Apache web server must be _completely_ restarted to enable monitoring. To do this correctly, it’s important to understand the difference between “partial” and “complete” restarts. In the case of partial restarts, the main Apache process re-reads its configuration files, re-opens its log files, and then restarts its worker processes. OneAgent however, requires a complete Apache web server restart in which all workers and—most importantly—the main Apache process are shut down entirely and then restarted.

See [Stopping and Restarting Apache HTTP Server](https://httpd.apache.org/docs/2.4/stopping.html) for more information on the different types of available restarts.

**To perform a complete restart:**

- **Linux and AIX**
  - You may be accustomed to restarting Apache by issuing an

  - To execute a complete Apache restart and enable deep monitoring with Dynatrace OneAgent, you need to first invoke a complete shutdown using the

  - It’s fine to use

- **Windows**
  - On Windows, you can either use the built-in Windows Service Management or Apache Service Monitor (httpd.exe) to restart Apache services. Restarting the Apache service with Windows Service Management guarantees the complete restart. With httpd.exe, you may be accustomed to restarting Apache by issuing a

  - To execute a complete Apache restart and enable deep monitoring with OneAgent, you need to first invoke a complete shutdown using the

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [January 10, 2023, 3:08pm UTC](https://community.dynatrace.com/t/why-doesnt-oneagent-start-to-monitor-apache-process-after-restart/37086/2 "2023-01-10T15:08:08Z")

</div>

And if all else fails, restart the entire box&nbsp;:rofl: Thanks&nbsp;[@adham\_sabry](https://community.dynatrace.com/user/25940)&nbsp;for providing clarity on this issue and the solutions that are available to us 🙂
