<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Why doesn't OneAgent start to monitor Apache process after restart? in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Why-doesn-t-OneAgent-start-to-monitor-Apache-process-after/ta-p/197525</link>
    <description>&lt;DIV class="lia-message-template-question-zone"&gt;&lt;P&gt;Following installation of OneAgent, your Apache web server must be&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;completely&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://httpd.apache.org/docs/2.4/stopping.html" target="_blank" rel="noopener"&gt;Stopping and Restarting Apache HTTP Server&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for more information on the different types of available restarts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;To perform a complete restart:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Linux and AIX&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;You may be accustomed to restarting Apache by issuing an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;apachectl restart&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. However, this command only results in a partial Apache restart.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;To execute a complete Apache restart and enable deep monitoring with Dynatrace OneAgent, you need to first invoke a complete shutdown using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;apachectl stop&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. Only following this step can you restart the server using&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;apachectl start&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;It's fine to use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;service apache2 restart&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;on Ubuntu systems. Note however that whatever commands you use, you'll likely need superuser rights (sudo).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;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&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;httpd.exe, you may be accustomed to restarting Apache by issuing a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;httpd.exe -k restart -n "Apache2.4"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. However, this command only results in a partial Apache restart.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;To execute a complete Apache restart and enable deep monitoring with OneAgent, you need to first invoke a complete shutdown using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;httpd.exe -k stop -n "Apache2.4"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. Only following this step can you restart the server using&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;httpd.exe -k start -n "Apache2.4".&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 02 Nov 2022 07:45:21 GMT</pubDate>
    <dc:creator>adham_sabry</dc:creator>
    <dc:date>2022-11-02T07:45:21Z</dc:date>
    <item>
      <title>Why doesn't OneAgent start to monitor Apache process after restart?</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Why-doesn-t-OneAgent-start-to-monitor-Apache-process-after/ta-p/197525</link>
      <description>&lt;DIV class="lia-message-template-question-zone"&gt;&lt;P&gt;Following installation of OneAgent, your Apache web server must be&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;completely&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://httpd.apache.org/docs/2.4/stopping.html" target="_blank" rel="noopener"&gt;Stopping and Restarting Apache HTTP Server&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for more information on the different types of available restarts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;To perform a complete restart:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Linux and AIX&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;You may be accustomed to restarting Apache by issuing an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;apachectl restart&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. However, this command only results in a partial Apache restart.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;To execute a complete Apache restart and enable deep monitoring with Dynatrace OneAgent, you need to first invoke a complete shutdown using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;apachectl stop&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. Only following this step can you restart the server using&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;apachectl start&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;It's fine to use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;service apache2 restart&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;on Ubuntu systems. Note however that whatever commands you use, you'll likely need superuser rights (sudo).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;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&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;httpd.exe, you may be accustomed to restarting Apache by issuing a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;httpd.exe -k restart -n "Apache2.4"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. However, this command only results in a partial Apache restart.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;To execute a complete Apache restart and enable deep monitoring with OneAgent, you need to first invoke a complete shutdown using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;httpd.exe -k stop -n "Apache2.4"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;command. Only following this step can you restart the server using&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE&gt;&lt;SPAN&gt;httpd.exe -k start -n "Apache2.4".&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Nov 2022 07:45:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Why-doesn-t-OneAgent-start-to-monitor-Apache-process-after/ta-p/197525</guid>
      <dc:creator>adham_sabry</dc:creator>
      <dc:date>2022-11-02T07:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't OneAgent start to monitor Apache process after restart?</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Why-doesn-t-OneAgent-start-to-monitor-Apache-process-after/tac-p/202037#M109</link>
      <description>&lt;P&gt;And if all else fails, restart the entire box&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt; Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25940"&gt;@adham_sabry&lt;/a&gt;&amp;nbsp;for providing clarity on this issue and the solutions that are available to us &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 15:08:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Why-doesn-t-OneAgent-start-to-monitor-Apache-process-after/tac-p/202037#M109</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-01-10T15:08:08Z</dc:date>
    </item>
  </channel>
</rss>

