スポンサーサイト
一定期間更新がないため広告を表示しています
- 2023.06.28 Wednesday
- -
- -
- -
- by スポンサードリンク
# cd /usr/ports/sysutils/munin-nodeエラーとか出たけどとりあえず完了。
# make install
===> Vulnerability check disabled, database not found
===> License check disabled, port has not defined LICENSE
=> munin-1.4.4.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
(中略)
mv /usr/local/share/munin/plugins/*.adv /usr/local/share/munin
mv: rename /usr/local/share/munin/plugins/*.adv to /usr/local/share/munin/*.adv: No such file or directory
gmake: [install-plugins-prime] エラー 1 (無視されました)
./install-sh -m 0644 build/plugins/plugins.history /usr/local/share/munin/plugins/
./install-sh -m 0644 build/plugins/plugin.sh /usr/local/share/munin/plugins/
Initializing new plugins..done.
Would you like me to set up log rotation [y]? y
********************************************************************
Unless this file already existed, a sample configuration file
has been placed in /usr/local/etc/munin/munin-node.conf.
Please edit it according to your needs.
********************************************************************
The Munin client will *not* be started automatically. To allow it
to start, put this line in /etc/rc.conf:
munin_node_enable="YES"
Then, it will be started on the next boot. If this line is already
present, the client will be started now. Otherwise, edit
/etc/rc.conf and execute this command:
/usr/local/etc/rc.d/munin-node start
********************************************************************
===> Installing rc.d startup script(s)
===> Compressing manual pages for munin-node-1.4.4
===> Registering installation for munin-node-1.4.4
# rehash
# ee /usr/etc/rc.confを追加。
munin_node_enable="YES"
# aee /usr/local/etc/munin/munin-node.conf次にmuninディレクトリをmunin(ユーザ:グループ)にくれてやる
#user root
#group wheel
user munin
group munin
#
host_name SERVER_NAME
# chown -R munin:munin /var/munin/そして、httpd.confに上述した一番下のmuninディレクトリのエイリアスを作る。
# chown -R munin:munin /var/log/munin/
# chown -R munin:munin /var/run/munin/
# chown -R munin:munin /usr/local/www/munin/
# /usr/local/etc/rc.d/munin-node startしてやると他のサイトの説明では動く状態になるということだったのだが、ウチの環境では全く動かない。何も表示されない。
# cd /usr/ports/sysutils/munin-master/俺「先生!ストップエラーです(泣)」
# make install
===> Vulnerability check disabled, database not found
===> License check disabled, port has not defined LICENSE
===> Extracting for munin-master-1.4.4
===> pango-1.28.1 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of x11-toolkits/pango
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1
Stop in /usr/ports/x11-toolkits/pango.
*** Error code 1
Stop in /usr/ports/databases/rrdtool.
*** Error code 1
Stop in /usr/ports/databases/rrdtool.
*** Error code 1
Stop in /usr/ports/sysutils/munin-master.
# cd /usr/ports/x11-toolkits/pango/とか
# make install
# cd /usr/ports/databases/rrdtool/とか
# make install
# cd /usr/ports/graphics/cairo/
# make install
# ln -s /usr/local/share/munin/plagins/apache_accesses /usr/local/etc/munin/plugins/ググって参考にしてきたサイトによるとpluginを追加してやれば簡単に追加が可能という事だったけど、これもやはり一発では行かない。
# ln -s /usr/local/share/munin/plagins/apache_processes /usr/local/etc/munin/plugins/
# ln -s /usr/local/share/munin/plagins/apache_volume /usr/local/etc/munin/plugins/
# munin-run apache_accesses"LWP::UserAgent"が無いって?
LWP::UserAgent not found at /usr/local/etc/munin/plugins/apache_accesses line 86.
# cd /usr/ports/www/p5-LWP-UserAgent-Determinedちゃんとグラフが出たよ!
# make install
postfix_mailqueueあたりも追加してみるが・・・・・・
postfix_mailstats
postfix_mailvolume
mysql_
mysql_bytes
mysql_innodb
mysql_isam_space_
mysql_queries
mysql_slowqueries
mysql_threads
# munin-run mysql_&
Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.9/BSDPAN /usr/local/lib/perl5/site_perl/5.8.9/mach /usr/local/lib/perl5/site_perl/5.8.9 /usr/local/lib/perl5/5.8.9/mach /usr/local/lib/perl5/5.8.9 .) at /usr/local/etc/munin/plugins/mysql_ line 113.
BEGIN failed--compilation aborted at /usr/local/etc/munin/plugins/mysql_ line 113.
/usr/local/sbin/munin-run --servicedir /usr/local/share/munin/plugins/ mysql_ autoconfエラー!
Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.9/BSDPAN /usr/local/lib/perl5/site_perl/5.8.9/mach /usr/local/lib/perl5/site_perl/5.8.9 /usr/local/lib/perl5/5.8.9/mach /usr/local/lib/perl5/5.8.9 .) at /usr/local/share/munin/plugins//mysql_ line 113.
BEGIN failed--compilation aborted at /usr/local/share/munin/plugins//mysql_ line 113.
# /usr/local/sbin/munin-run --servicedir /usr/local/share/munin/plugins/ uptime autoconfYES!なので追加。
yes
# ln -s /usr/local/share/munin/plugins/apc_envunit_ /usr/local/etc/munin/plugins/APCのグラフが出ない。
# ln -s /usr/local/share/munin/plugins/apc_nis /usr/local/etc/munin/plugins/
# ln -s /usr/local/share/munin/plugins/memcached_ /usr/local/etc/munin/plugins/
# rm if_errcoll_fw*消したはずなのに消えてなかったり、グラフに反映されるまでにずいぶんと時間がかかった。muninは設定してから一晩くらいおいて確認するのがいいのかもしれないw
# rm if_errcoll_plip0
# rm ntp_*
# rm sendmail_mail*
# munin-node-configure***
Plugin | Used | Extra information
------ | ---- | -----------------
apache_accesses | yes |
apache_processes | yes |
apache_volume | yes |
apc_envunit_ | yes |
apc_nis | yes |
cpu | yes |
df | yes |
df_inode | yes |
if_ | yes | fxp0
if_errcoll_ | yes | fxp0
iostat | yes |
load | yes |
memcached_ | yes |
memory | yes |
munin_stats | yes |
mysql_ | yes |
mysql_bytes | yes |
mysql_innodb | yes |
mysql_isam_space_ | yes |
mysql_queries | yes |
mysql_slowqueries | yes |
mysql_threads | yes |
netstat | yes |
open_files | yes |
postfix_mailqueue | yes |
postfix_mailstats | yes |
postfix_mailvolume | yes |
processes | yes |
swap | yes |
systat | yes |
uptime | yes |
users | yes |
vmstat | yes |
#