Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Plack::Middleware::ServerStatus::Lite 0.08

    Download button

    No screenshots available
    Downloads: 66  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Masahiro Nagano | More programs
    Perl Artistic License / FREE
    August 24th, 2012, 20:59 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Plack::Middleware::ServerStatus::Lite description

    Show server status like Apache's mod_status

    Plack::Middleware::ServerStatus::Lite is a Perl middleware that display server status in multiprocess Plack servers such as Starman and Starlet. This middleware changes status only before and after executing the application. so cannot monitor keepalive session and network i/o wait.

    SYNOPSIS

     use Plack::Builder;

     builder {
     enable "Plack::Middleware::ServerStatus::Lite",
     path => '/server-status',
     allow => [ '127.0.0.1', '192.168.0.0/16' ],
     counter_file => '/tmp/counter_file',
     scoreboard => '/var/run/server';
     $app;
     };

     % curl http://server:port/server-status
     Uptime: 1234567789
     Total Accesses: 123
     BusyWorkers: 2
     IdleWorkers: 3
     --
     pid status remote_addr host method uri protocol ss
     20060 A 127.0.0.1 localhost:10001 GET / HTTP/1.1 1
     20061 .
     20062 A 127.0.0.1 localhost:10001 GET /server-status HTTP/1.1 0
     20063 .
     20064 .

     # JSON format
     % curl http://server:port/server-status?json
     {"Uptime":"1332476669","BusyWorkers":"2",
     "stats":[
     {"protocol":null,"remote_addr":null,"pid":"78639",
     "status":".","method":null,"uri":null,"host":null,"ss":null},
     {"protocol":"HTTP/1.1","remote_addr":"127.0.0.1","pid":"78640",
     "status":"A","method":"GET","uri":"/","host":"localhost:10226","ss":0},
     ...
     ],"IdleWorkers":"3"}



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    server status | Perl module | Perl | server | status

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM