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
k222 python と rubyにチェックいれてみるが、
===> Verifying install for rrdtool>=0 in /usr/ports/databases/rrdtool Makefile error: bad value for PYTHON_VERSION: python2.5. Legal values are: python2.6 python2.7 (default) python3.1 python3.2 *** Error code 1
と言って止まる。k222は、Tracが動いていて、FreeBSD7.1。python 2.5。7.2Rからベースバージョンが2.6になったとのこと・・・。
Pythonのオプションは外すか・・・。
******************************************************************** 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。
実際どれが悪さしているのか、調べるヨロシ( ̄^ ̄)ゞ
下手人はこいつら
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=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_sqlite.so extension=pgsql.so extension=phar.so ##extension=posix.so extension=posix.so extension=pspell.so extension=readline.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=sqlite3.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 5073:本日 1:昨日 1