<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.geeek.org/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Blog de Geeek, le blog geek par excellence par Ludovic Toinel ... - Balise - cacti</title>
  <link>http://www.geeek.org/</link>
  <atom:link href="http://www.geeek.org/feed/tag/cacti/rss2" rel="self" type="application/rss+xml"/>
  <description>Le blog d'un geek passionné par : l'informatique, le Web, Internet, les gadgets, la photo, la sécurité, Linux, la culture geek ...</description>
  <language>fr</language>
  <pubDate>Thu, 21 Aug 2008 16:11:42 +0200</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>ApacheHits.pl revu et corrigé pour fonctionner avec les versions récentes de Cacti et Apache</title>
    <link>http://www.geeek.org/post/2007/06/20/ApacheHitspl-revu-et-corrige-pour-fonctionner-avec-les-versions-recentes-de-Cacti-et-Apache</link>
    <guid isPermaLink="false">urn:md5:5e1c8d0119c6e2849ab5ec0e5e892e48</guid>
    <pubDate>Wed, 20 Jun 2007 23:53:00 +0200</pubDate>
    <dc:creator>Ludovic Toinel</dc:creator>
        <category>Developpement</category>
        <category>apache</category><category>cacti</category>    
    <description>    &lt;p&gt;Pour les utilisateurs du logiciel &lt;a href=&quot;http://cacti.net&quot; hreflang=&quot;fr&quot;&gt;Cacti&lt;/a&gt;, voici le script ApacheHits.pl corrigé pour qu'il puisse fonctionner avec les versions récentes de Cacti et d'Apache :&lt;/p&gt;

&lt;code class=&quot;perl&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/usr/bin/perl&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$output&lt;/span&gt; = `/bin/bash -c &lt;span style=&quot;color: #ff0000;&quot;&gt;'wget --quiet -O - \&amp;quot;http:\/\/localhost\/server-status&amp;quot;'&lt;/span&gt;`;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$output&lt;/span&gt; =~ /&lt;span style=&quot;color: #009999;&quot;&gt;&amp;lt;dt&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;.*&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; requests\/sec/;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$value&lt;/span&gt; = $&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$value&lt;/span&gt; =~ /^\./&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: #0000ff;&quot;&gt;$value&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$value&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.perldoc.com/perl5.6/pod/func/print.html&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;print&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;reqsec:&amp;quot;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$value&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$output&lt;/span&gt; =~ /&lt;span style=&quot;color: #009999;&quot;&gt;&amp;lt;dt&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;.*&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; requests currently being processed/;&lt;br /&gt;
&lt;a href=&quot;http://www.perldoc.com/perl5.6/pod/func/print.html&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;print&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;curreq:&amp;quot;&lt;/span&gt;.$&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;;&lt;/code&gt;


&lt;p&gt;Ce script permet à Cacti de récupérer le nombre de requêtes HTTP moyen par secondes et le nombre de requêtes en cours de traitement par le serveur.
Cela permet de faire des graphes de charge très sympa par la suite ....&lt;/p&gt;</description>
    
    
    
          <comments>http://www.geeek.org/post/2007/06/20/ApacheHitspl-revu-et-corrige-pour-fonctionner-avec-les-versions-recentes-de-Cacti-et-Apache#comment-form</comments>
      <wfw:comment>http://www.geeek.org/post/2007/06/20/ApacheHitspl-revu-et-corrige-pour-fonctionner-avec-les-versions-recentes-de-Cacti-et-Apache#comment-form</wfw:comment>
      <wfw:commentRss>http://www.geeek.org/feed/rss2/comments/906</wfw:commentRss>
      </item>
    
</channel>
</rss>