[[HP ProLiant ML110 G7]]
#contents
*munin insutall [#v7baa883]
http://www.kkaneko.com/computer/servers/munin.html

 portinstall sysutils/munin-node
 portinstall sysutils/munin-master
 portinstall sysutils/munin-common これは、munin-node インストール時に同時に入る。2013/04/04
**munin-node [#g6ea6f2f]

**munin-master [#f8523530]
#ref(Munin_rrdtool.png) 

**munin-common [#c290a94c]
 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

*muninの設定 [#sbce6164]
**munin.conf の設定 [#j94556d5]
FreeBSD で ports を使ってインストールした場合には /usr/local/etc/munin/munin.conf を編集する 

 # htmldir /usr/local/www/munin
 htmldir /usr/local/www/apache22/data/munin

とするか、デフォルトのままの

 # htmldir /usr/local/www/munin

として、/usr/local/etc/apache22/include/munin.conf などで

 Alias /munin /usr/local/www/munin
 <Directory "/usr/local/www/munin">
 #	Options Indexes FollowSymLinks ExecCGI
 #	AllowOverride ALL
     Order deny,allow
     Deny from ALL
  	Allow from .smb.net
 	Allow from 172.16.1.139
 	Allow from .hoge.net
 </Directory>

とかする。

** munin_nodeの自動起動設定 [#b8825234]
 echo munin_node_enable="YES" >> /etc/rc.conf


***munin-node の再起動 [#ac51807b]
FreeBSD で ports を使ってインストールした場合には, 「/usr/local/sbin/munin-node restart 」になる. 
 # /usr/local/etc/rc.d/munin-node restart 

**munin-cron の実行 [#oaccaf98]
 su - munin
 /usr/local/bin/munin-cron

*munin InstallしたらApacheが起動しなくなったった [#p7bfaddf]
 [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

** lang/php5 を再インストール [#c2aed414]
** php5-extensions を再インストール [#fc16f81f]
 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
**ナオタ( ̄^ ̄)ゞ [#n19b4c8e]
なんかインストールしたらアパチが転ける、っての再々あるような気がする。

特にPHP周りとかに多い様な気がする。

で、大抵 httpd.confの、
 LoadModule php5_module        libexec/apache22/libphp5.so
をコメントアウトすると、起動出来る、ってのが多い気がする。

で、実稼働しているwww.smb.netの
 /usr/local/etc/php/extensions.ini
を持ってきて、既存の肥大化した?w extensions.ini と入れ替えるととおk。

実際どれが悪さしているのか、調べるヨロシ( ̄^ ̄)ゞ

*Apacheを起動不能にする/usr/local/etc/php/extensions.ini のモジュール [#n97666e8]

下手人はこいつら
 extension=recode.so
 extension=sybase_ct.so

で、現在のextensions.ini

 extension=bcmath.so
 extension=bz2.so
 extension=calendar.so
 extension=ctype.so
 extension=curl.so
 extension=dba.so
 extension=dom.so
 extension=exif.so
 extension=fileinfo.so
 ;; extension=fileinfo.so
 extension=filter.so
 extension=ftp.so
 extension=gd.so
 extension=gettext.so
 extension=gmp.so
 extension=hash.so
 extension=iconv.so
 extension=imap.so
 extension=interbase.so
 extension=json.so
 extension=ldap.so
 extension=mbstring.so
 extension=mcrypt.so
 extension=mssql.so
 extension=mysql.so
 extension=mysqli.so
 extension=odbc.so
 extension=openssl.so
 extension=pcntl.so
 extension=pdf.so
 extension=pdo.so
 ##extension=pdo_mysql.so
 ;; extension=pdo_mysql.so
 extension=pdo_sqlite.so
 extension=pgsql.so
 extension=phar.so
 ##extension=posix.so
 ;; extension=posix.so
 extension=posix.so
 extension=pspell.so
 extension=readline.so
 ###extension=recode.so
 ;;; extension=recode.so
 extension=session.so
 extension=shmop.so
 extension=simplexml.so
 extension=snmp.so
 extension=soap.so
 extension=sockets.so
 ##extension=sqlite.so
 ;; extension=sqlite.so
 extension=sqlite3.so
 ###extension=sybase_ct.so
 ;;; extension=sybase_ct.so
 extension=tidy.so
 extension=tokenizer.so
 extension=wddx.so
 extension=xml.so
 extension=xmlreader.so
 extension=xmlrpc.so
 extension=xmlwriter.so
 extension=xsl.so
 extension=zip.so
 extension=zlib.so
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS