forked from matsumotory/mod_rchecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
69 lines (67 loc) · 1.79 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// -------------------------------------------------------------------
// mod_rchecker.c
// Process Resource Logging Module
// by rusage().
// By matsumoto_r Sep 2009 in Japan
//
// Date 2009/12/08
// Version 0.01-beta
//
// change log
// 2009/12/08 matsumoto_r coding start
// 2013/01/06 ku-suke fork from master
//
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// How To Compile
// [Use DSO]
// apxs -c -D__MOD_APACHE2__ mod_rchecker.c
// cp ./.libs/mod_rchecker.so /usr/local/apache2/modules
//
// <add to httpd.conf>
// LoadModule rchecker_module modules/mod_rchecker.so
//
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// How To Use
// [Server Config]
//
//
// -------------------------------------------------------------------
// [Directive Config]
//
// log file: /tmp/mod_rchecker.log
// or #define MOD_RCHECKER_LOG_FILE "/tmp/mod_rchecker.log"
//
// - Logging CPUUserTime
// RCheckUCPU <threashould> <type>
//
// - Logging CPUSystemTime
// RCheckSCPU <threashould> <type>
//
// - Logging UsedMemory
// RCheckMEM <threashould> <type>
//
// <threashould> digit(non-zero)
//
// <type> ALL
// SELF
// CHILD
//
// = Directory Access Control -
// <Directory "/var/www/html">
// RCheckUCPU 0.0001 ALL
// </Directory>
//
// = File Access Control -
// <Files "ag.cgi">
// RCheckUCPU 0.003 SELF
// RCheckSCPU 0.004 CHILD
// </Files>
//
// = Files Regex Access Control -
// <FilesMatch ".*\.cgi$">
// RCheckUCPU 0.005 ALL
// </FilesMatch>
//
// -------------------------------------------------------------------