Munin on HP ProLiant ML110 G7
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[HP ProLiant ML110 G7]]
[[Munin on NEC-Express5800/GT110b FreeBSD 8.1]]
#contents
えっと、上記を参考にして、Muninは設置出来ているものとしま...
*WWWサーバをMuninで監視するよ! [#n4bb30ac]
といえば、当然用意されているプラグインの、Apache関連を使...
blackcube# munin-node-configure -suggest
すると、
Plugin | Used | Suggestions
------ | ---- | -----------
amavis | no | no
apache_accesses | no | no [apache server-st...
apache_processes | no | no [apache server-st...
apache_volume | no | no [apache server-st...
となります。(ーー;)
機体によっては
Plugin | Used | Suggestions
------ | ---- | -----------
amavis | no | no
apache_accesses | no | no [LWP::UserAgent n...
apache_processes | no | no
apache_volume | no | no [LWP::UserAgent n...
と成ったりもします。
**LWP::UserAgent not found 2013/10/08 [#a981e2fb]
2013/10/08-15:05:01 [91772] Error output from apache_pro...
2013/10/08-15:05:01 [91772] LWP::UserAgent not found at...
root@blackcube:/usr/local/etc/php # cpan
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation ...
Enter 'h' for help.
cpan[1]> install LWP::UserAgent
しても、NG
# portupgrade -f p5-libwww-6.05
でも、NG
http://www.unixeds.com/some-bsd/freebsd-and-munin-howto
# munin-run apache_accesses
LWP::UserAgent not found at /usr/local/etc/munin/plugins...
# portinstall www/p5-LWP-UserAgent-Determined
http://selfool.jugem.jp/?eid=873
これでも、NG なんで?
----
**munin-node-configure -suggest [#e78260c9]
というコマンドのソースを見てませんが、プラグイン実行時の...
[apache server-status not found. check if mod_status is ...
に対処するわけですが・・・。まず、server-statusを表示させ...
/usr/local/etc/apache22/httpd.conf
# Real-time info on requests and configuration
Include etc/apache22/extra/httpd-info.conf
で、ついで、該当のetc/apache22/extra/httpd-info.confを、
# Get information about the requests being processed by ...
# and the configuration of the server.
#
# Required modules: mod_status (for the server-status ha...
# mod_info (for the server-info handler)
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enab...
ScriptAlias /server-status/ ":80/server-status/"
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from .smb.net
</Location>
#
# ExtendedStatus controls whether Apache will generate "...
# information (ExtendedStatus On) or just basic informat...
# Off) when the "server-status" handler is called. The d...
#
ExtendedStatus On
#
# Allow remote server configuration reports, with the UR...
# http://servername/server-info (requires that mod_info...
# Change the ".example.com" to match your domain to enab...
#
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from .smb.net
</Location>
とします。
ScriptAlias /server-status/ ":80/server-status/"
とするのは、Muninのプラグインが、url:80 でアクセスする事...
/usr/local/etc/munin/plugin-conf.d/plugin.conf
[apache_*]
env.url http://127.0.0.1:%d/server-status?auto
#env.url http://127.0.0.1/server-status?auto
env.ports 80
これで、
Plugin | Used | Suggestions
------ | ---- | -----------
amavis | no | no
apache_accesses | yes | yes
apache_processes | no | no
apache_volume | yes | yes
となったと思います。あとは、プラグインのリンクを
blackcube# munin-node-configure -shell | sh
で自動生成する、ヨロシ(o゜▽゜)o
http://sunq.jp/style/archives/2012/02/19-165504
apache_processes | no | no
となっていたwww.smb.netですが、他のG7機体ではyesとなって...
blackcube# cat /var/log/munin/munin-node.log
2012/08/18-17:30:02 [62546] Error output from apache_pro...
2012/08/18-17:30:02 [62546] Use of qw(...) as parent...
とあり、
Use of qw(…) as parentheses is deprecated at /etc/munin/...
foreach my $type(qw “busy idle” {
↓
foreach my $type (qw (“busy idle”)) {
としてOK
終了行:
[[HP ProLiant ML110 G7]]
[[Munin on NEC-Express5800/GT110b FreeBSD 8.1]]
#contents
えっと、上記を参考にして、Muninは設置出来ているものとしま...
*WWWサーバをMuninで監視するよ! [#n4bb30ac]
といえば、当然用意されているプラグインの、Apache関連を使...
blackcube# munin-node-configure -suggest
すると、
Plugin | Used | Suggestions
------ | ---- | -----------
amavis | no | no
apache_accesses | no | no [apache server-st...
apache_processes | no | no [apache server-st...
apache_volume | no | no [apache server-st...
となります。(ーー;)
機体によっては
Plugin | Used | Suggestions
------ | ---- | -----------
amavis | no | no
apache_accesses | no | no [LWP::UserAgent n...
apache_processes | no | no
apache_volume | no | no [LWP::UserAgent n...
と成ったりもします。
**LWP::UserAgent not found 2013/10/08 [#a981e2fb]
2013/10/08-15:05:01 [91772] Error output from apache_pro...
2013/10/08-15:05:01 [91772] LWP::UserAgent not found at...
root@blackcube:/usr/local/etc/php # cpan
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation ...
Enter 'h' for help.
cpan[1]> install LWP::UserAgent
しても、NG
# portupgrade -f p5-libwww-6.05
でも、NG
http://www.unixeds.com/some-bsd/freebsd-and-munin-howto
# munin-run apache_accesses
LWP::UserAgent not found at /usr/local/etc/munin/plugins...
# portinstall www/p5-LWP-UserAgent-Determined
http://selfool.jugem.jp/?eid=873
これでも、NG なんで?
----
**munin-node-configure -suggest [#e78260c9]
というコマンドのソースを見てませんが、プラグイン実行時の...
[apache server-status not found. check if mod_status is ...
に対処するわけですが・・・。まず、server-statusを表示させ...
/usr/local/etc/apache22/httpd.conf
# Real-time info on requests and configuration
Include etc/apache22/extra/httpd-info.conf
で、ついで、該当のetc/apache22/extra/httpd-info.confを、
# Get information about the requests being processed by ...
# and the configuration of the server.
#
# Required modules: mod_status (for the server-status ha...
# mod_info (for the server-info handler)
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enab...
ScriptAlias /server-status/ ":80/server-status/"
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from .smb.net
</Location>
#
# ExtendedStatus controls whether Apache will generate "...
# information (ExtendedStatus On) or just basic informat...
# Off) when the "server-status" handler is called. The d...
#
ExtendedStatus On
#
# Allow remote server configuration reports, with the UR...
# http://servername/server-info (requires that mod_info...
# Change the ".example.com" to match your domain to enab...
#
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from .smb.net
</Location>
とします。
ScriptAlias /server-status/ ":80/server-status/"
とするのは、Muninのプラグインが、url:80 でアクセスする事...
/usr/local/etc/munin/plugin-conf.d/plugin.conf
[apache_*]
env.url http://127.0.0.1:%d/server-status?auto
#env.url http://127.0.0.1/server-status?auto
env.ports 80
これで、
Plugin | Used | Suggestions
------ | ---- | -----------
amavis | no | no
apache_accesses | yes | yes
apache_processes | no | no
apache_volume | yes | yes
となったと思います。あとは、プラグインのリンクを
blackcube# munin-node-configure -shell | sh
で自動生成する、ヨロシ(o゜▽゜)o
http://sunq.jp/style/archives/2012/02/19-165504
apache_processes | no | no
となっていたwww.smb.netですが、他のG7機体ではyesとなって...
blackcube# cat /var/log/munin/munin-node.log
2012/08/18-17:30:02 [62546] Error output from apache_pro...
2012/08/18-17:30:02 [62546] Use of qw(...) as parent...
とあり、
Use of qw(…) as parentheses is deprecated at /etc/munin/...
foreach my $type(qw “busy idle” {
↓
foreach my $type (qw (“busy idle”)) {
としてOK
ページ名: