CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Munin de Apache [#i88997ce]

FreeBSD 10.2-RELEASE Apache24

/usr/local/etc/munin/plugins # munin-node-configure -suggest

 Plugin                     | Used | Suggestions
 ------                     | ---- | -----------
 amavis                     | no   | no
 apache_accesses            | no   | no   
 apache_processes           | no   | no   
 apache_volume              | no   | no   

を、

 Plugin                     | Used | Suggestions
 ------                     | ---- | -----------
 amavis                     | no   | no
 apache_accesses            | yes  | yes
 apache_processes           | yes  | yes
 apache_volume              | yes  | yes

 # munin-run apache_accesses
 accesses80.value 99

にする。

*Apache24 settings [#gc4875aa]

** /usr/local/etc/apache24/httpd.conf [#ha0dccd1]

 LoadModule status_module libexec/apache24/mod_status.so

の一行があることを確認。

** /usr/local/etc/apache24/Includes [#k621dc99]

以下を作成

server-status.conf

 <Location /server-status>
 SetHandler server-status
 Order Deny,Allow
 Deny from all
 Allow from 127.0.0.1
 </Location>
 # ExtendedStatus controls whether Apache will generate "full" status
 # information (ExtendedStatus On) or just basic information (ExtendedStatus
 # Off) when the "server-status" handler is called. The default is Off.
 #
 ExtendedStatus On
 
 
 #
 # Allow remote server configuration reports, with the URL of
 #  http://servername/server-info (requires that mod_info.c be loaded).
 # Change the ".example.com" to match your domain to enable.
 #
 <Location /server-info>
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
 </Location>

** Apache and Munin restart [#e4fef7ad]

 # Apachectl restart
 # /usr/local/etc/rc.d/munin-node restat
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS