<?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>topic Re: Monit and httpd.pid in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030668#M29075</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This appears to be a misconfiguration in httpd.conf&lt;BR /&gt;&lt;BR /&gt;Check that the DocumentRoot location is correct and permissions are appropriate so the apache server can at least read the content.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 03 Jul 2007 08:14:11 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-07-03T08:14:11Z</dc:date>
    <item>
      <title>Monit and httpd.pid</title>
      <link>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030664#M29071</link>
      <description>Hi there&lt;BR /&gt;&lt;BR /&gt;I've got monit instaalled and configured only to monitor httpd and localhost.&lt;BR /&gt;&lt;BR /&gt;set daemon 60&lt;BR /&gt;set logfile syslog facility log_daemon&lt;BR /&gt;set alert peterk@xxx.com&lt;BR /&gt;#set alert colin@xxx.com&lt;BR /&gt;set httpd port 2812&lt;BR /&gt;allow localhost&lt;BR /&gt;allow admin:xxx&lt;BR /&gt;allow xxx.xx.xxx.xxx&lt;BR /&gt;allow xxx.xxx.xxx.xxx&lt;BR /&gt;&lt;BR /&gt;   # localhost&lt;BR /&gt;&lt;BR /&gt;     check system localhost&lt;BR /&gt;     if loadavg (1min) &amp;gt; 4 then alert&lt;BR /&gt;     if loadavg (5min) &amp;gt; 3 then alert&lt;BR /&gt;     if memory usage &amp;gt; 70% then alert&lt;BR /&gt;     if cpu usage (user) &amp;gt; 70% then alert&lt;BR /&gt;     if cpu usage (system) &amp;gt; 70% then alert&lt;BR /&gt;     if cpu usage (wait) &amp;gt; 30% then alert&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   #apache&lt;BR /&gt;&lt;BR /&gt;        check process httpd with pidfile /var/run/httpd.pid&lt;BR /&gt;        group apache&lt;BR /&gt;        start program = "/usr/local/apache2/bin/apachectl start"&lt;BR /&gt;        stop  program = "/usr/local/apache2/bin/apachectl stop"&lt;BR /&gt;        if failed port 80 protocol http then alert&lt;BR /&gt;        if cpu &amp;gt; 60% for 2 cycles then alert&lt;BR /&gt;        if cpu &amp;gt; 90% for 5 cycles then alert&lt;BR /&gt;        if children &amp;gt; 255 then alert&lt;BR /&gt;        if loadavg(5 min) greater than 10 for 8 cycles then alert&lt;BR /&gt;        if totalmem &amp;gt; 200.0 MB for 5 cycles then alert&lt;BR /&gt;        if 3 restarts within 5 cycles then timeout&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There is only one httpd.pid in this system - but two paches installed - the apache2 is not working.&lt;BR /&gt;&lt;BR /&gt;Where am I doing a mistake &lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jul 2007 11:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030664#M29071</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2007-07-02T11:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Monit and httpd.pid</title>
      <link>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030665#M29072</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I don't know monit specifically.&lt;BR /&gt;&lt;BR /&gt; pidfile /var/run/httpd.pid&lt;BR /&gt;&lt;BR /&gt;Is not a good way to check if apache/httpd is running.&lt;BR /&gt;&lt;BR /&gt;do a kill -9 on all your httpd processes on a test box. Then check the pid. You will see it sits there merrily telling your current monitor that the server is up and running.&lt;BR /&gt;&lt;BR /&gt;Ways to check:&lt;BR /&gt;ps -ef | grep httpd | wc -l&lt;BR /&gt;# Shows the number of open processes.&lt;BR /&gt;wget for a website index.html served by the server. This will actually let you know if there is content being served up.&lt;BR /&gt;&lt;BR /&gt;How to integrate it with monit? Can't help with that.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 02 Jul 2007 11:49:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030665#M29072</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-07-02T11:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Monit and httpd.pid</title>
      <link>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030666#M29073</link>
      <description>Each apache configuration  can be configured to put the pid file in a specific location.&lt;BR /&gt;&lt;BR /&gt;The configuration directive is simly:&lt;BR /&gt;&lt;BR /&gt;PidFile /location/to/httpd.pid&lt;BR /&gt;&lt;BR /&gt;This can be over-ridden, so it's no big deal.&lt;BR /&gt;&lt;BR /&gt;So simply put, you need to tell the other apache to use a different pid location, and set up a 2nd 'apache' monit looking at that, with it's own start/stop programs.</description>
      <pubDate>Mon, 02 Jul 2007 16:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030666#M29073</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-07-02T16:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monit and httpd.pid</title>
      <link>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030667#M29074</link>
      <description>I was trying wget 127.0.0.1 80 and I've got this message:&lt;BR /&gt;&lt;BR /&gt;# wget 127.0.0.1 80&lt;BR /&gt;--11:38:05--  &lt;A href="http://127.0.0.1/" target="_blank"&gt;http://127.0.0.1/&lt;/A&gt;&lt;BR /&gt;           =&amp;gt; `index.html'&lt;BR /&gt;Connecting to 127.0.0.1:80... connected.&lt;BR /&gt;HTTP request sent, awaiting response... 403 Forbidden&lt;BR /&gt;11:38:05 ERROR 403: Forbidden.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why is this site forbiden at localhost I think this is a source of my problem.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jul 2007 05:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030667#M29074</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2007-07-03T05:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Monit and httpd.pid</title>
      <link>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030668#M29075</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This appears to be a misconfiguration in httpd.conf&lt;BR /&gt;&lt;BR /&gt;Check that the DocumentRoot location is correct and permissions are appropriate so the apache server can at least read the content.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 03 Jul 2007 08:14:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/monit-and-httpd-pid/m-p/4030668#M29075</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-07-03T08:14:11Z</dc:date>
    </item>
  </channel>
</rss>

