2012-02-25 23:45:20 +01:00
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "en"
lang="en" dir="ltr">
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > < / title >
<!-- metadata -->
< meta name = "generator" content = "Offline" / >
< meta name = "version" content = "Offline 0.1" / >
<!-- style sheet links -->
< link rel = "stylesheet" media = "all" type = "text/css" href = "../../../css/all.css" / >
< link rel = "stylesheet" media = "screen" type = "text/css" href = "../../../css/screen.css" / >
< link rel = "stylesheet" media = "print" type = "text/css" href = "../../../css/print.css" / >
< / head >
< body >
< div class = "dokuwiki export" >
2015-06-08 16:57:58 +02:00
< h1 class = "sectionedit1" id = "handler_status" > Handler Status< / h1 >
2012-02-25 23:45:20 +01:00
< div class = "level1" >
< / div >
2015-06-08 16:57:58 +02:00
<!-- EDIT1 SECTION "Handler Status" [1 - 30] -->
< h2 class = "sectionedit2" id = "presentation" > Presentation< / h2 >
2012-02-25 23:45:20 +01:00
< div class = "level2" >
< p >
When status feature is activated, Handlers and portal will collect statistics and save them in their local cache. This means that if several Handlers are deployed, each will manage its own statistics.
< / p >
< p >
< p > < div class = "notetip" >
2016-03-22 12:19:17 +01:00
This page can be browsed for example by < a href = "http://oss.oetiker.ch/mrtg/" class = "urlextern" title = "http://oss.oetiker.ch/mrtg/" rel = "nofollow" > MRTG< / a > using the < a href = "../../documentation/2.0/mrtg.html" class = "wikilink1" title = "documentation:2.0:mrtg" > MRTG monitoring script< / a > .
2012-02-25 23:45:20 +01:00
< / div > < / p >
< / p >
< p >
The statistics are collected trough a daemon launched by the Handler. It can be seen in system processes, for example:
< / p >
2015-06-08 16:57:58 +02:00
< pre class = "code" > perl -MLemonldap::NG::Handler::Status -I/etc/perl -I/usr/local/lib/perl/5.10.1 -I/usr/local/share/perl/5.10.1 -I/usr/lib/perl5 -I/usr/share/perl5 -I/usr/lib/perl/5.10 -I/usr/share/perl/5.10 -I/usr/local/lib/site_perl -I. -I/etc/apache2 -e & Lemonldap::NG::Handler::Status::run(Cache::FileCache,{? ' cache_depth' => 5,? ' cache_root' => ' /tmp' ,? ' directory_umask' => ' 007' ,? ' default_expires_in' => 600,? ' namespace' => ' MyNamespace' ? }?);< / pre >
2012-02-25 23:45:20 +01:00
< p >
Statistics are displayed when calling the status path on an Handler (for example: < a href = "http://test1.example.com/status" class = "urlextern" title = "http://test1.example.com/status" rel = "nofollow" > http://test1.example.com/status< / a > ).
< / p >
< p >
Example of status page:
< / p >
< p >
2016-03-22 12:19:17 +01:00
< a href = "/_detail/documentation/status_standard.png?id=documentation%3A2.0%3Astatus" class = "media" title = "documentation:status_standard.png" > < img src = "../../../media/documentation/status_standard.png" class = "mediacenter" alt = "" / > < / a >
2012-02-25 23:45:20 +01:00
< / p >
< / div >
2015-06-08 16:57:58 +02:00
<!-- EDIT2 SECTION "Presentation" [31 - 1206] -->
< h2 class = "sectionedit3" id = "configuration" > Configuration< / h2 >
2012-02-25 23:45:20 +01:00
< div class = "level2" >
< / div >
2015-06-08 16:57:58 +02:00
<!-- EDIT3 SECTION "Configuration" [1207 - 1233] -->
< h3 class = "sectionedit4" id = "apache" > Apache< / h3 >
2012-02-25 23:45:20 +01:00
< div class = "level3" >
< p >
You need to give access to status path in the Handler Apache configuration:
< / p >
< pre class = "code file apache" > < span class = "co1" > # Uncomment this to activate status module< / span >
< < span class = "kw3" > Location< / span > /status>
< span class = "kw1" > Order< / span > < span class = "kw1" > deny< / span > ,< span class = "kw1" > allow< / span >
2015-06-08 16:57:58 +02:00
< span class = "kw1" > Allow< / span > from 127.0.0.0/< span class = "nu0" > 8< / span >
2014-05-22 11:58:26 +02:00
PerlHeaderParserHandler Lemonldap::NG::Handler-> status
2012-02-25 23:45:20 +01:00
< /< span class = "kw3" > Location< / span > > < / pre >
< p >
Then restart Apache.
< / p >
< p >
2015-06-08 16:57:58 +02:00
< p > < div class = "notetip" > You should change the < code > Allow< / code > directive to match administration < abbr title = "Internet Protocol" > IP< / abbr > , or use another Apache protection mean.
2012-02-25 23:45:20 +01:00
< / div > < / p >
< / p >
< / div >
2015-06-08 16:57:58 +02:00
<!-- EDIT4 SECTION "Apache" [1234 - 1705] -->
< h3 class = "sectionedit5" id = "lemonldapng" > LemonLDAP::NG< / h3 >
2012-02-25 23:45:20 +01:00
< div class = "level3" >
< p >
Edit < code > lemonldap-ng.ini< / code > , and activate status in the < code > handler< / code > section:
< / p >
< pre class = "code file ini" > < span class = "re0" > < span class = "br0" > [ < / span > handler< span class = "br0" > ] < / span > < / span >
2015-06-08 16:57:58 +02:00
# Set status to < span class = "nu0" > 1< / span > if you want to have the report of activity < span class = "br0" > ( < / span > used for
2012-02-25 23:45:20 +01:00
# example to inform MRTG< span class = "br0" > ) < / span >
< span class = "re1" > status< / span > < span class = "sy0" > =< / span > < span class = "re2" > 1< / span > < / pre >
< p >
Then restart Apache.
< / p >
< / div >
2015-06-08 16:57:58 +02:00
< / div > <!-- closes <div class="dokuwiki export"> -->