Munin de Apache

CONTENTS


Lastmodified 2021-02-08 (月) 17:45:24


MUNIN de Apache マルチドメイン編

複数のIP Based Vertual host を運用しているサーバのhttpsd をMUNINで監視しようとして、普通に?

munin-node-configure -suggest

すると、

Plugin                     | Used | Suggestions
------                     | ---- | -----------
amavis                     | no   | yes
apache_accesses            | no   | no [Port 80: Protocol scheme 'https' is not supported (LWP::Protocol::https not installed)]
apache_processes           | no   | no [Port 80: Protocol scheme 'https' is not supported (LWP::Protocol::https not installed)]
apache_volume              | no   | no [Port 80: Protocol scheme 'https' is not supported (LWP::Protocol::https not installed)]

言われるので、

# portinstall www/p5-LWP-Protocol-https

して、もう一回 -suggest したら、今度は、

apache_accesses            | no   | no [Port 80: Can't connect to 127.0.0.1:80 (SSL connect attempt failed error:140770FC:SSL routines:SSL23_GET_SERVER_HELLknown protocol)]
apache_processes           | no   | no [Port 80: Can't connect to 127.0.0.1:80 (SSL connect attempt failed error:140770FC:SSL routines:SSL23_GET_SERVER_HELLknown protocol)]
apache_volume              | no   | no [Port 80: Can't connect to 127.0.0.1:80 (SSL connect attempt failed error:140770FC:SSL routines:SSL23_GET_SERVER_HELLknown protocol)]

言われた。

ググルと、https://rougeref.hatenablog.com/entry/20170519/1495180606 がヒット。

しかし、本質は別のところにあったのでした。

/usr/local/etc/apache24/extra/httpd-vhosts.conf へ、

###################################################################################################
<VirtualHost *:80>
   ServerAdmin webmaster@hotshot.smb.net
   DocumentRoot "/usr/local/www/apache24/data"
   ServerName hotshot.smb.net
   ServerAlias mail.smb.net
</VirtualHost>
###################################################################################################

と書き込むことで、127.0.0.1:80へアクセスできるようになって、

 # munin-node-configure -suggest で、

apache_accesses            | yes  | yes
apache_processes           | yes  | yes
apache_volume              | yes  | yes

となりました。

# munin-node-configure --shell | sh

Total access 933:本日 1:昨日 1

Counter: 933, today: 1, yesterday: 1

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-02-08 (月) 17:45:24