<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: check_apachestatus_auto.pl v1.2 released</title>
	<atom:link href="http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=check_apachestatus_auto-pl-v1-2-released</link>
	<description>A blog about Delphi programming, web and other technical stuff</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:22:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: gebi</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-7855</link>
		<dc:creator>gebi</dc:creator>
		<pubDate>Wed, 14 Dec 2011 16:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-7855</guid>
		<description>Thx for your really helpfull apache check.

we have added 2 additional features:
  - once added the path to make your check work on debian
  - changed the warn/critical from absolut values to percent (as many apache are configured in a way to have a different slot count after the first apache master process generation)

Both formatted as nice and seperated patches:
https://github.com/gebi/nagios_checks/commit/c7519cc7e00ba54a489d043984ef3ae102527287

https://github.com/gebi/nagios_checks/commit/a2fd9f4f05bca68881a8e67ba1c939c025865098

what do you think about them?</description>
		<content:encoded><![CDATA[<p>Thx for your really helpfull apache check.</p>
<p>we have added 2 additional features:<br />
  &#8211; once added the path to make your check work on debian<br />
  &#8211; changed the warn/critical from absolut values to percent (as many apache are configured in a way to have a different slot count after the first apache master process generation)</p>
<p>Both formatted as nice and seperated patches:<br />
<a href="https://github.com/gebi/nagios_checks/commit/c7519cc7e00ba54a489d043984ef3ae102527287" rel="nofollow">https://github.com/gebi/nagios_checks/commit/c7519cc7e00ba54a489d043984ef3ae102527287</a></p>
<p><a href="https://github.com/gebi/nagios_checks/commit/a2fd9f4f05bca68881a8e67ba1c939c025865098" rel="nofollow">https://github.com/gebi/nagios_checks/commit/a2fd9f4f05bca68881a8e67ba1c939c025865098</a></p>
<p>what do you think about them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Schoeller</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-7734</link>
		<dc:creator>Eric Schoeller</dc:creator>
		<pubDate>Fri, 29 Apr 2011 01:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-7734</guid>
		<description>Sorry just saw that you replied. There are no extras needed to provide the thread scoreboard. It&#039;s part of server status. All this plugin would need to do is parse the scoreboard and generate notifications based on the number of threads in a certain state.</description>
		<content:encoded><![CDATA[<p>Sorry just saw that you replied. There are no extras needed to provide the thread scoreboard. It&#8217;s part of server status. All this plugin would need to do is parse the scoreboard and generate notifications based on the number of threads in a certain state.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-6287</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Tue, 07 Dec 2010 13:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-6287</guid>
		<description>You&#039;re welcome.</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-6229</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sat, 04 Dec 2010 16:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-6229</guid>
		<description>never mind -- helps if I name the file right.</description>
		<content:encoded><![CDATA[<p>never mind &#8212; helps if I name the file right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-6227</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sat, 04 Dec 2010 16:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-6227</guid>
		<description>I am getting a error with the PNP file.

templates/check_apachestatus.php [30]:

Undefined index: Slots

And I really have no clue how to fix this.</description>
		<content:encoded><![CDATA[<p>I am getting a error with the PNP file.</p>
<p>templates/check_apachestatus.php [30]:</p>
<p>Undefined index: Slots</p>
<p>And I really have no clue how to fix this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-5372</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Thu, 21 Oct 2010 19:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-5372</guid>
		<description>sorry, overlooked your comment - those thread infos are hard to retrieve (you need to write an extra apache module).. I am not aware of any existing modules to use - do you know any?</description>
		<content:encoded><![CDATA[<p>sorry, overlooked your comment &#8211; those thread infos are hard to retrieve (you need to write an extra apache module).. I am not aware of any existing modules to use &#8211; do you know any?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eschoeller</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-5090</link>
		<dc:creator>eschoeller</dc:creator>
		<pubDate>Tue, 05 Oct 2010 00:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-5090</guid>
		<description>I&#039;m curious if you have any interest in expanding the functionalities of this plugin. We&#039;re looking to monitor the activity of threads on a more detailed level. We have some situations where after an incident we&#039;re stuck with tons of threads in the &#039;Sending Reply&#039; or &#039;Graceful Finishing&#039; state. I&#039;m curious if you would consider adding in functionality to watch thread types and allow for warning and critical thresholds to be applied to them.

Thanks!!</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious if you have any interest in expanding the functionalities of this plugin. We&#8217;re looking to monitor the activity of threads on a more detailed level. We have some situations where after an incident we&#8217;re stuck with tons of threads in the &#8216;Sending Reply&#8217; or &#8216;Graceful Finishing&#8217; state. I&#8217;m curious if you would consider adding in functionality to watch thread types and allow for warning and critical thresholds to be applied to them.</p>
<p>Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cjeanneret</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-4371</link>
		<dc:creator>Cjeanneret</dc:creator>
		<pubDate>Fri, 06 Aug 2010 07:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-4371</guid>
		<description>Hello again,

For the lib, it&#039;s not a problem - perl -I is a good friend.

But I checked how you get Server type... and, well, I think it can be done in a smarter way:

diff -u check_apachestatus_auto.pl check_webserver.pl 
--- check_apachestatus_auto.pl  2009-07-14 13:04:30.000000000 +0200
+++ check_webserver.pl  2010-08-06 08:58:17.000000000 +0200
@@ -190,6 +190,9 @@
 my $webcontent = undef;
 if ($response-&gt;is_success) {
   $webcontent=$response-&gt;content;
+  my @t = split(&#039;/&#039;, $response-&gt;header(&#039;server&#039;)) ;
+  $httpserver = $t[0];
+
 
   my $Uptime = 0;
        if($webcontent =~ m/Uptime: (.*?)\n/) {
@@ -212,11 +215,8 @@
   }
   
   my $BusyWorkers= 0;
-       if($webcontent =~ m/(BusyWorkers&#124;BusyServers): (.*?)\n/) {
-        $BusyWorkers = $2;
-        if ($1 eq &#039;BusyServers&#039;) {
-                $httpserver = &#039;LIGHTTPD&#039;;
-        }
+       if($webcontent =~ m/(:?BusyWorkers&#124;BusyServers): (.*?)\n/) {
+        $BusyWorkers = $1;
   }
   
   my $IdleWorkers=0;</description>
		<content:encoded><![CDATA[<p>Hello again,</p>
<p>For the lib, it&#8217;s not a problem &#8211; perl -I is a good friend.</p>
<p>But I checked how you get Server type&#8230; and, well, I think it can be done in a smarter way:</p>
<p>diff -u check_apachestatus_auto.pl check_webserver.pl<br />
&#8212; check_apachestatus_auto.pl  2009-07-14 13:04:30.000000000 +0200<br />
+++ check_webserver.pl  2010-08-06 08:58:17.000000000 +0200<br />
@@ -190,6 +190,9 @@<br />
 my $webcontent = undef;<br />
 if ($response-&gt;is_success) {<br />
   $webcontent=$response-&gt;content;<br />
+  my @t = split(&#8216;/&#8217;, $response-&gt;header(&#8216;server&#8217;)) ;<br />
+  $httpserver = $t[0];<br />
+</p>
<p>   my $Uptime = 0;<br />
        if($webcontent =~ m/Uptime: (.*?)\n/) {<br />
@@ -212,11 +215,8 @@<br />
   }</p>
<p>   my $BusyWorkers= 0;<br />
-       if($webcontent =~ m/(BusyWorkers|BusyServers): (.*?)\n/) {<br />
-        $BusyWorkers = $2;<br />
-        if ($1 eq &#8216;BusyServers&#8217;) {<br />
-                $httpserver = &#8216;LIGHTTPD&#8217;;<br />
-        }<br />
+       if($webcontent =~ m/(:?BusyWorkers|BusyServers): (.*?)\n/) {<br />
+        $BusyWorkers = $1;<br />
   }</p>
<p>   my $IdleWorkers=0;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cjeanneret</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-4366</link>
		<dc:creator>Cjeanneret</dc:creator>
		<pubDate>Thu, 05 Aug 2010 13:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-4366</guid>
		<description>Hello,

Thank you for this update. May I suggest a new change ?

*** mine.pl     2010-08-05 15:34:54.374819435 +0200
--- check_apachestatus_auto.pl  2009-07-14 13:04:30.000000000 +0200
*************** use Digest::MD5 qw(md5 md5_hex);
*** 30,36 ****
  # Nagios specific
  
  use lib &quot;/usr/local/nagios/libexec&quot;;
- use lib &quot;/usr/lib/nagios/plugins&quot;;
  use utils qw(%ERRORS $TIMEOUT);
  #my %ERRORS=(&#039;OK&#039;=&gt;0,&#039;WARNING&#039;=&gt;1,&#039;CRITICAL&#039;=&gt;2,&#039;UNKNOWN&#039;=&gt;3,&#039;DEPENDENT&#039;=&gt;4);
  
--- 30,35 ----


This patch allow your script to work on a debian installation, using debian packages.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thank you for this update. May I suggest a new change ?</p>
<p>*** mine.pl     2010-08-05 15:34:54.374819435 +0200<br />
&#8212; check_apachestatus_auto.pl  2009-07-14 13:04:30.000000000 +0200<br />
*************** use Digest::MD5 qw(md5 md5_hex);<br />
*** 30,36 ****<br />
  # Nagios specific</p>
<p>  use lib &#8220;/usr/local/nagios/libexec&#8221;;<br />
- use lib &#8220;/usr/lib/nagios/plugins&#8221;;<br />
  use utils qw(%ERRORS $TIMEOUT);<br />
  #my %ERRORS=(&#8216;OK&#8217;=&gt;0,&#8217;WARNING&#8217;=&gt;1,&#8217;CRITICAL&#8217;=&gt;2,&#8217;UNKNOWN&#8217;=&gt;3,&#8217;DEPENDENT&#8217;=&gt;4);</p>
<p>&#8212; 30,35 &#8212;-</p>
<p>This patch allow your script to work on a debian installation, using debian packages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://blog.spreendigital.de/2009/07/14/check_apachestatus_auto-pl-v1-2-released/comment-page-1/#comment-4274</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Tue, 27 Jul 2010 16:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=245#comment-4274</guid>
		<description>Hi There,
I&#039;ve tried to use the check_apachestatus_auto.pl Plugin, but it always fails. 
The Check is:
 ./check_apachestatus_auto.pl --hostname &quot;hostname&quot; --url http://&quot;hostname&quot;/server-status?auto
If I tried it with user root and user nagios out of the bash, all works fine. 

If i tried to check it via nrpe or online via nagios, I always becomes a failure:

(Service check did not exit properly)

My output in the bash is:
qsargos01:/opt/nagios/libexec # ./check_apachestatus_auto.pl --hostname qsargos01.total.hosting --url http://argos-test.total.hosting/server-status?auto
APACHE OK - 0.028 sec. response time, Busy/Idle 1/74, open 949/1024, ReqPerSec 0.1, BytesPerReq 1289, BytesPerSec 111&#124;Idle=74 Busy=1 OpenSlots=949 Slots=1024 Starting=0 Reading=0 Sending=1 Keepalive=0 DNS=0 Closing=0 Logging=0 Finishing=0 ReqPerSec=0.086761 BytesPerReq=1289 BytesPerSec=111.918873 Accesses=154qsargos01:/opt/nagios/libexec #

It looks like there is a Problem with the output data. Why there is always this line &quot;qsargos01:/opt/nagios/libexec #&quot; directly behind the output?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi There,<br />
I&#8217;ve tried to use the check_apachestatus_auto.pl Plugin, but it always fails.<br />
The Check is:<br />
 ./check_apachestatus_auto.pl &#8211;hostname &#8220;hostname&#8221; &#8211;url http://&#8221;hostname&#8221;/server-status?auto<br />
If I tried it with user root and user nagios out of the bash, all works fine. </p>
<p>If i tried to check it via nrpe or online via nagios, I always becomes a failure:</p>
<p>(Service check did not exit properly)</p>
<p>My output in the bash is:<br />
qsargos01:/opt/nagios/libexec # ./check_apachestatus_auto.pl &#8211;hostname qsargos01.total.hosting &#8211;url <a href="http://argos-test.total.hosting/server-status?auto" rel="nofollow">http://argos-test.total.hosting/server-status?auto</a><br />
APACHE OK &#8211; 0.028 sec. response time, Busy/Idle 1/74, open 949/1024, ReqPerSec 0.1, BytesPerReq 1289, BytesPerSec 111|Idle=74 Busy=1 OpenSlots=949 Slots=1024 Starting=0 Reading=0 Sending=1 Keepalive=0 DNS=0 Closing=0 Logging=0 Finishing=0 ReqPerSec=0.086761 BytesPerReq=1289 BytesPerSec=111.918873 Accesses=154qsargos01:/opt/nagios/libexec #</p>
<p>It looks like there is a Problem with the output data. Why there is always this line &#8220;qsargos01:/opt/nagios/libexec #&#8221; directly behind the output?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
</channel>
</rss>

