Lemonldap::NG::Handler::Status.3pm

Langue: en

Autres versions - même langue

Version: 2009-06-29 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Lemonldap::NG::Handler::Status - Perl extension to add a mod_status like system for Lemonldap::NG::Handler

SYNOPSIS

Create your Apache module

Create your own package (example using a central configuration database):
   package My::Package;
   use Lemonldap::NG::Handler::SharedConf;
   @ISA = qw(Lemonldap::NG::Handler::SharedConf);
   
   __PACKAGE__->init ( {
     # Activate status feature
     status              => 1,
     # Local storage used for sessions and configuration
     localStorage        => "Cache::DBFile",
     localStorageOptions => {...},
     # How to get my configuration
     configStorage       => {
         type                => "DBI",
         dbiChain            => "DBI:mysql:database=lemondb;host=$hostname",
         dbiUser             => "lemonldap",
         dbiPassword          => "password",
     }
     # ... See Lemonldap::N::Handler
   } );
 
 

Configure Apache

Call your package in /apache-dir/conf/httpd.conf:
   # Load your package
   PerlRequire /My/File
   # Normal Protection
   PerlHeaderParserHandler My::Package
   
   # Status page
   <Location /status>
     Order deny,allow
     Allow from 10.1.1.0/24
     Deny from all
     PerlHeaderParserHandler My::Package->status
   </Location>
 
 

DESCRIPTION

Lemonldap::NG::Handler::Status adds a mod_status like feature to display Lemonldap::NG::Handler activity on a protected server. It can so be used by mrtg or directly browsed by your browser.

SEE ALSO

Lemonldap::NG::Handler, Lemonldap::NG::Portal, Lemonldap::NG::Manager, <http://wiki.lemonldap.objectweb.org/xwiki/bin/view/NG/Presentation>

AUTHOR

Xavier Guimard, <x.guimard@free.fr> Copyright (C) 2008 by Xavier Guimard

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.