Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring Close mod_status statistics to show Post 302562809 by ieth0 on Saturday 8th of October 2011 11:11:08 AM
Old 10-08-2011
Code:
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

or set any other IP instead of 127.0.0.1
 

8 More Discussions You Might Find Interesting

1. Programming

system statistics

i am currently using c functions such as getprocs and statsfs to obtain process information and filesystem information on machines running aix 4.3.3.0. (soon to be running aix5.1) is there a function available to access information similar to the information provided by a vmstat command? i also... (1 Reply)
Discussion started by: briansmith40
1 Replies

2. Shell Programming and Scripting

Analyze Statistics

I have a file which contains records in the format of 2006-08-25 12:06:13|ABC|93 2006-08-25 12:45:55|ABC|203 2006-08-25 01:48:19|DEF|156 2006-08-25 01:49:09|ABC|12798 2006-08-25 02:49:59|GHL|4109 2006-08-25 03:50:50|DEF|234 where the format is "arrive time"|"message type"|"processing... (3 Replies)
Discussion started by: mpang_
3 Replies

3. Solaris

how to get server statistics

Hello What commands can give following type of information about the server: Time: 20080331.12:10:39 Current CPU: 97.0% Current Memory: 3.7% Current Disk Space: 76% The resources on server is currently not available. Current CPU, Memory, or Disk Space is exceeding threshold Waiting for... (2 Replies)
Discussion started by: shalua
2 Replies

4. AIX

Statistics Aix

Hello If there is a way to get a statistics from Aix box server from a month. cpu use, memory, disc use, etc. Maybe via smitty or I need to do a script. The os is Aix 5.3 Greetings (8 Replies)
Discussion started by: lo-lp-kl
8 Replies

5. Programming

when parent process close, how to close the child?

can someone provide an example, where if the parent process quits for any reason, then the child process will also close? (3 Replies)
Discussion started by: omega666
3 Replies

6. Shell Programming and Scripting

statistics using awk

Hi, I have 3 columns in a file listed below. X Y X/(X+Y) 1 1 0.5 1 1 0.5 4 1 0.8 1 1 0.5 6 1 0.857142857 1 1 0.5 23 1 0.958333333 Now I want to find confidence interval using the formula for each row. (p-2 sqrt p(1-p)/(x+y), p+2... (7 Replies)
Discussion started by: Diya123
7 Replies

7. UNIX for Dummies Questions & Answers

Any way to get process statistics?

Hi, Can someone advise what "generic" command can I use to show statistics of a process or a running script/process? For example, I want to know how many hours/minutes it's taken to run or has been running, how much CPU it used and how much memory it used or uses. I want to be able to... (2 Replies)
Discussion started by: newbie_01
2 Replies

8. Shell Programming and Scripting

Text statistics

Hello every body if I want to get the following statistics from a text file 1- sorted the n frequent words 2- sorted the n frequent characters 3- sorted the n frequent diagrams (tow letter together like th OR he) 4- sorted frequent n trigrams like (the OR all etc. ) 5- any character... (10 Replies)
Discussion started by: khaled79
10 Replies
libapache2-mod-perl2-2.0.7::docs::api::Apache2::Status(3User Contributed Perl Documentalibapache2-mod-perl2-2.0.7::docs::api::Apache2::Status(3pm)

NAME
Apache2::Status - Embedded interpreter status information Synopsis <Location /perl-status> # disallow public access Order Deny, Allow Deny from all Allow from 127.0.0.1 SetHandler modperl PerlOptions +GlobalRequest PerlResponseHandler Apache2::Status </Location> or <Location /perl-status> # disallow public access Order Deny, Allow Deny from all Allow from 127.0.0.1 SetHandler perl-script PerlResponseHandler Apache2::Status </Location> Description The "Apache2::Status" module provides some information about the status of the Perl interpreter embedded in the server. Configure like so: <Location /perl-status> # disallow public access Order Deny, Allow Deny from all Allow from 127.0.0.1 SetHandler modperl PerlOptions +GlobalRequest PerlResponseHandler Apache2::Status </Location> Notice that under the "modperl" core handler the Environment menu option will show only the environment under that handler. To see the environment seen by handlers running under the "perl-script" core handler, configure "Apache2::Status" as: <Location /perl-status> # disallow public access Order Deny, Allow Deny from all Allow from 127.0.0.1 SetHandler perl-script PerlResponseHandler Apache2::Status </Location> Other modules can "plugin" a menu item like so: require Apache2::Module; Apache2::Status->menu_item( 'DBI' => "DBI connections", #item for Apache::DBI module sub { my ($r, $q) = @_; #request and CGI objects my (@strings); push @strings, "blobs of html"; return @strings; #return an array ref } ) if Apache2::Module::loaded('Apache2::Status'); WARNING: "Apache2::Status" must be loaded before these modules via the "PerlModule" or "PerlRequire" directives (or from startup.pl). A very common setup might be: Perl Module B::TerseSize <Location /perl-status> SetHandler perl-script PerlResponseHandler Apache2::Status PerlSetVar StatusOptionsAll On PerlSetVar StatusDeparseOptions "-p -sC" </Location> due to the implementation of Apache2::Status::noh_fileline in B::TerseSize, you must load B::TerseSize first. Options "StatusOptionsAll" This single directive will enable all of the options described below. PerlSetVar StatusOptionsAll On "StatusDumper" When browsing symbol tables, the values of arrays, hashes and scalars can be viewed via "Data::Dumper" if this configuration variable is set to "On": PerlSetVar StatusDumper On "StatusPeek" With this option "On" and the "Apache::Peek" module installed, functions and variables can be viewed ala "Devel::Peek" style: PerlSetVar StatusPeek On "StatusLexInfo" With this option "On" and the "B::LexInfo" module installed, subroutine lexical variable information can be viewed. PerlSetVar StatusLexInfo On "StatusDeparse" With this option "On" subroutines can be "deparsed". PerlSetVar StatusDeparse On Options can be passed to "B::Deparse::new" like so: PerlSetVar StatusDeparseOptions "-p -sC" See the "B::Deparse" manpage for details. "StatusTerse" With this option "On", text-based op tree graphs of subroutines can be displayed, thanks to "B::Terse". PerlSetVar StatusTerse On "StatusTerseSize" With this option "On" and the "B::TerseSize" module installed, text-based op tree graphs of subroutines and their size can be displayed. See the "B::TerseSize" docs for more info. PerlSetVar StatusTerseSize On "StatusTerseSizeMainSummary" With this option "On" and the "B::TerseSize" module installed, a "Memory Usage" will be added to the "Apache2::Status" main menu. This option is disabled by default, as it can be rather cpu intensive to summarize memory usage for the entire server. It is strongly suggested that this option only be used with a development server running in "-X" mode, as the results will be cached. PerlSetVar StatusTerseSizeMainSummary On "StatusGraph" When "StatusDumper" is enabled, another link "OP Tree Graph" will be present with the dump if this configuration variable is set to "On": PerlSetVar StatusGraph This requires the B module (part of the Perl compiler kit) and "B::Graph" (version 0.03 or higher) module to be installed along with the "dot" program. Dot is part of the graph visualization toolkit from AT&T: http://www.graphviz.org/. WARNING: Some graphs may produce very large images, some graphs may produce no image if "B::Graph"'s output is incorrect. "Dot" Location of the dot program for "StatusGraph", if other than /usr/bin or /usr/local/bin "GraphDir" Directory where "StatusGraph" should write it's temporary image files. Default is "$ServerRoot/logs/b_graphs". Prerequisites The "Devel::Symdump" module, version 2.00 or higher. Other optional functionality requirements: "B::Deparse" - 0.59, "B::Fathom" - 0.05, ""B::Graph"" - 0.03. Copyright mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. See Also perl(1), Apache(3), Devel::Symdump(3), Data::Dumper(3), B(3), "B::Graph"(3), mod_perl 2.0 documentation. Authors Doug MacEachern with contributions from Stas Bekman perl v5.14.2 2011-02-08 libapache2-mod-perl2-2.0.7::docs::api::Apache2::Status(3pm)
All times are GMT -4. The time now is 09:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy