CONTENTS
Lastmodified 2021-02-08 (月) 17:45:24
複数の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 939:本日 1:昨日 0