CONTENTS


Lastmodified 2020-01-16 (木) 03:19:48


[技術ブログvol.31] Muninで80と443を監視するのは一筋縄ではいかない #2

http://www.denet.ad.jp/technology/2015/05/vol31-munin80443-2.html

muninで443ポートを監視する意味はない

https://kumachan.biz/2014/08/03_2053/4130/


Munin de Apache

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

/usr/local/etc/apache24/httpd.conf

LoadModule status_module libexec/apache24/mod_status.so

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

/usr/local/etc/apache24/Includes

プラグイン登録

piano2nd# munin-node-configure --shell | sh

以下を作成

server-status.conf

<Location /server-status>
	SetHandler server-status
#	Allow from 127.0.0.1
	Require local
</Location>
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
	Require local
#	Allow from 127.0.0.1
	Require host	.smb.net
#	Allow from .smb.net
</Location>

Apache and Munin restart

# Apachectl restart
# /usr/local/etc/rc.d/munin-node restart
/usr/local/etc/rc.d/munin-node restart && apachectl restart

Total access 2107:本日 1:昨日 0

Counter: 2107, today: 1, yesterday: 0

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-01-16 (木) 03:19:48