cacti -   =)<br><br>#!/usr/bin/perl<br>use LWP::UserAgent;<br><br>my $URL = &quot;http://&quot; . $ARGV[0] . &quot;/nginx_status&quot;;<br><br>my $ua = LWP::UserAgent-&gt;new(timeout =&gt; 30);<br>my $response = $ua-&gt;request(HTTP::Request-&gt;new(&#39;GET&#39;, $URL));<br>
<br>my $active = 0;<br>my $requests = 0;<br>my $reading = 0;<br>my $writing = 0;<br>my $waiting = 0;<br>my $accepts = 0;<br>my $handled = 0;<br><br>foreach (split(/\n/, $response-&gt;content)) {<br> $active = $1 if (/^Active connections:\s+(\d+)/);<br>
 if (/^Reading:\s+(\d+).*Writing:\s+(\d+).*Waiting:\s+(\d+)/) {<br> $reading = $1;<br> $writing = $2;<br> $waiting = $3;<br> }<br> if (/^\s+(\d+)\s+(\d+)\s+(\d+)/){<br> $accepts = $1;<br>
 $handled = $2;<br> $requests = $3;<br> }<br>}<br> <br>print(&quot;active:&quot;.$active.&quot; reading:&quot;.$reading.&quot; writing:&quot;.$writing.&quot; waiting:&quot;.$waiting.&quot; accepts:&quot;.$accepts.&quot; handled:&quot;.$handled.&quot; requests:&quot;.$requests);<br>
<br><div class="gmail_quote">29  2009 . 20:37  Galina Fitness Club <span dir="ltr">&lt;<a href="mailto:kisulja2000@mail.ru">kisulja2000@mail.ru</a>&gt;</span> :<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
,<br>
<br>
      -    <br>
nginx?<br>
<br>
 ,<br>
  <br>
<br>
<br>
</blockquote></div><br>