http://www.kkaneko.com/computer/servers/munin.html
portinstall sysutils/munin-node portinstall sysutils/munin-master portinstall sysutils/munin-common
===> Installing rc.d startup script(s) Initializing new plugins..# FATAL: version '1.4.7' was not found in the plugin history file done. Cannot 'start' munin_node. Set munin_node_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. 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 ******************************************************************** ===> Correct pkg-plist sequence to create group(s) and user(s) ===> Compressing manual pages for munin-node-1.4.7 ===> Registering installation for munin-node-1.4.7 ===> Cleaning for munin-node-1.4.7
******************************************************************** Unless this file already existed, a sample configuration file has been placed in /usr/local/etc/munin/munin.conf. Please edit it according to your needs. The Munin server will be run from cron under the user 'munin'. ******************************************************************** ===> Correct pkg-plist sequence to create group(s) and user(s) ===> Compressing manual pages for munin-master-1.4.7_3 ===> Registering installation for munin-master-1.4.7_3 ===> Cleaning for munin-master-1.4.7_3
g7# portinstall sysutils/munin-common [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 254 packages found (-0 +50) .................................................. done] ** Found already installed package(s) of 'sysutils/munin-common': munin-common-1.4.7
FreeBSD で ports を使ってインストールした場合には /usr/local/etc/munin/munin.conf を編集する
# htmldir /usr/local/www/munin htmldir /usr/local/www/apache22/data/munin
mkdir /usr/local/www/apache22/data/munin chown -R munin:munin /usr/local/www/apache22/data/munin
httpd.conf の設定で、CGI が実行できるように設定しておく.
AddHandler cgi-script .cgi ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/" AllowOverride None Options ExecCGI Order allow,deny Allow from all
cd /usr/local/www mv cgi-bin/munin-cgi-graph apache22/cgi-bin mv munin apache22/data
g7# cd /usr/local/www g7# g7# ll total 5 drwxr-xr-x 6 root wheel 6 Aug 4 08:30 apache22 drwxr-xr-x 2 root wheel 4 Aug 6 11:46 cgi-bin drwxr-xr-x 2 munin munin 8 Aug 6 11:50 munin g7# cp cgi-bin/munin-cgi-graph apache22/cgi-bin g7# cp munin apache22/data cp: munin is a directory (not copied). g7# g7# cp -rp munin apache22/data
echo munin_node_enable="YES" >> /etc/rc.conf
FreeBSD で ports を使ってインストールした場合には, 「/usr/local/sbin/munin-node restart 」になる.
「/usr/local/sbin/munin-node restart
su - munin /usr/local/bin/munin-cron
[Mon Jul 23 07:40:08 2012] [notice] Digest: done [Mon Jul 23 07:40:09 2012] [notice] Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 configured -- resuming normal operations [Tue Jul 24 18:15:30 2012] [notice] caught SIGTERM, shutting down [Sat Jul 28 12:31:03 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Jul 28 12:31:03 2012] [notice] Digest: generating secret for digest authentication ... [Sat Jul 28 12:31:03 2012] [notice] Digest: done [Sat Jul 28 12:31:04 2012] [notice] Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 configured -- resuming normal operations [Sat Jul 28 12:31:33 2012] [notice] caught SIGTERM, shutting down [Sat Aug 04 08:18:25 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Aug 04 08:18:25 2012] [notice] Digest: generating secret for digest authentication ... [Sat Aug 04 08:18:25 2012] [notice] Digest: done [Sat Aug 04 08:18:26 2012] [notice] Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 configured -- resuming normal operations [Sat Aug 04 08:36:41 2012] [notice] SIGHUP received. Attempting to restart [Sat Aug 04 08:36:41 2012] [notice] Digest: generating secret for digest authentication ... [Sat Aug 04 08:36:41 2012] [notice] Digest: done [Sat Aug 04 08:36:42 2012] [notice] Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 configured -- resuming normal operations [Sat Aug 04 08:46:36 2012] [notice] SIGHUP received. Attempting to restart [Sat Aug 04 08:46:36 2012] [notice] Digest: generating secret for digest authentication ... [Sat Aug 04 08:46:36 2012] [notice] Digest: done [Sat Aug 04 08:46:37 2012] [notice] Apache/2.2.22 (FreeBSD) mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2 configured -- resuming normal operations [Sat Aug 04 09:08:21 2012] [notice] caught SIGTERM, shutting down [Sat Aug 04 09:10:54 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] PHP Warning: Function registration failed - duplicate name - mssql_connect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_pconnect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_close in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_select_db in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_query in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_free_result in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_get_last_message in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_num_rows in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_num_fields in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_row in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_array in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_assoc in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_object in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_data_seek in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_field in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_field_seek in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_result in Unknown on line 0 PHP Warning: sybase_ct: Unable to register functions, unable to load in Unknown on line 0 [Mon Aug 06 07:43:20 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Aug 06 09:05:46 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] PHP Warning: Function registration failed - duplicate name - mssql_connect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_pconnect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_close in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_select_db in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_query in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_free_result in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_get_last_message in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_num_rows in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_num_fields in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_row in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_array in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_assoc in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_object in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_data_seek in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_field in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_field_seek in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_result in Unknown on line 0 PHP Warning: sybase_ct: Unable to register functions, unable to load in Unknown on line 0 [Mon Aug 06 12:35:19 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] PHP Warning: Function registration failed - duplicate name - mssql_connect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_pconnect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_close in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_select_db in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_query in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_free_result in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_get_last_message in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_num_rows in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_num_fields in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_row in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_array in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_assoc in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_object in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_data_seek in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_fetch_field in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_field_seek in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_result in Unknown on line 0 PHP Warning: sybase_ct: Unable to register functions, unable to load in Unknown on line 0
g7# cd /usr/ports/lang/php5-extensions/ g7# make deinstall ===> Deinstalling for lang/php5-extensions ===> Deinstalling php5-extensions-1.7 g7# portinstall lang/php5-extensions
なんかインストールしたらアパチが転ける、っての再々あるような気がする。
特にPHP周りとかに多い様な気がする。
で、大抵 httpd.confの、
LoadModule php5_module libexec/apache22/libphp5.so
をコメントアウトすると、起動出来る、ってのが多い気がする。
で、実稼働しているwww.smb.netの
/usr/local/etc/php/extensions.ini
を持ってきて、既存の肥大化した?w extensions.ini と入れ替えるととおk。
実際どれが悪さしているのか、調べるヨロシ( ̄^ ̄)ゞ