我所有的Apache插件返回相同的值:
/usr/share/munin/plugins# munin-run apache_volume volume443.value U
这是我在/etc/munin/plugin-conf.d/munin-node中的configuration
[apache_*] env.ports 443
有些人有一个想法是什么问题?
提前致谢
我find了解决scheme。
Apache脚本与ssl不兼容。 你必须使用修改后的版本:
http://munin-monitoring.org/attachment/wiki/PluginCat/apache_volume
http://munin-monitoring.org/attachment/wiki/PluginCat/apache_accesses
http://munin-monitoring.org/attachment/wiki/PluginCat/apachessl_processes
一定要安装perl库LWP :: UserAgent和Crypt :: SSLeay
修改/etc/munin/plugin-conf.d/munin-node:
[apache_*]
env.ports 443
env.url https://localhost:443/server-status?auto
它在那之后正常工作;-)
你有没有设置Apache来提供状态信息? 在/etc/apache2/mods-available/status.conf你需要类似的东西
<IfModule mod_status.c> ExtendedStatus On <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from localhost ip6-localhost 127.0.0.1 ::1 </Location> </IfModule>
起初:请参阅我的编辑下面! 可能是你不必改变脚本!
“hotips”的答案是正确的(+1),但只有链接不再有效。 但是你可以自己做三个脚本的变化。 这很容易。 在安装perl软件包LWP :: UserAgent和Crypt :: SSLeay之后(就像“hotips”所描述的那样)编辑每个脚本并更改以下行:
... my $ua = LWP::UserAgent->new(timeout => 30, agent => sprintf("munin/%s (libwww-perl/%s)", $Munin::Common::Defaults::MUNIN_VERSION, $LWP::VERSION)); ... ... my $response = $ua->request(HTTP::Request->new('GET',$url)); ...
成:
... my $ua = LWP::UserAgent->new(timeout => 30, verify_hostname => 0, agent => sprintf("munin/%s (libwww-perl/%s)", $Munin::Common::Defaults::MUNIN_VERSION, $LWP::VERSION)); ... ... my $response = $ua->get($url); ...
之后,不要忘记将configuration条目env.ports 443和env.url https://localhost:443/server-status?auto到/etc/munin/plugin-conf.d/munin-node (也描述由“hotips”)
编辑
Arrghhh! 找出一个有趣的事情。 可能是你不需要改变脚本! 在我的情况下,安装两个perl软件包并添加configuration条目的脚本与SSL工作得很好!