<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>とある情報システム担当の午後</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/" />
    <link rel="self" type="application/atom+xml" href="http://jhh-style.homelinux.com/dabun/atom.xml" />
    <id>tag:jhh-style.homelinux.com,2007-12-19:/dabun/3</id>
    <updated>2010-03-12T13:11:34Z</updated>
    <subtitle>Linux、ネットワーク管理を行っている情シス担当の技術メモ</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.27-ja</generator>

<entry>
    <title>sftp接続のカスタマイズ</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/03/sftp.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.409</id>

    <published>2010-03-12T12:29:30Z</published>
    <updated>2010-03-12T13:11:34Z</updated>

    <summary>以前構築した、OpenSSHを使って、chroot環境下でSFTPを動かす方法の...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[以前構築した、OpenSSHを使って、chroot環境下でSFTPを動かす方法のカスタマイズを行った。<br /><br />今回設定したのは、ログ出力と、bash権限を持つアカウントだけ鍵認証を行う設定。<br /><br />理想の状態はこんな感じ。<br /><br /><ol><li>chroot後の環境で、データのやりとりをsyslogで管理したい</li><li>sftpのログ専用のファシリティを設ける<br /></li><li>rsshユーザーはパスワード認証、bashユーザーは鍵認証をさせる<br /></li></ol><br />【 chroot環境下のログの採取方法 ＆ sftpファシリティの追加】<br />通常、chroot環境では、/dev/logを参照することが出来ないので、ログ出力は行えない。<br />そこで、syslogのオプションに、chroot後のディレクトリのdev/に、ソケットを作成する記述を行う。<br /><br />[/etc/sysconfig/syslog]<br />　変更前：SYSLOGD_OPTIONS="-m 0"<br />　変更後：SYSLOGD_OPTIONS="-m 0 -a chrootディレクトリ/dev/log"<br /><br />通常では-aオプションは１９個までしか設定出来ないっぽい。<br /><br />オプションの変更後、syslogを再起動すると、設定したchrootディレクトリ/varにlogファイルが作成されている。<br /><br />次に、sshd_configのSubSystemの箇所に、internal-sftpにログを出力するように編集し、編集後sshdの再起動を行う。<br /><br />[/etc/ssh/sshd_config]<br />
　変更前：Subsystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sftp&nbsp;&nbsp;&nbsp; internal-sftp<br />
　変更後：Subsystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sftp&nbsp;&nbsp;&nbsp; internal-sftp -f local1 -l info<br /><br />※-fはsyslogのファシリティ、-lでログレベルを指定する。<br /><br />参考にしたサイトとかだと、ファシリティをauthprivに設定しているとこが多かったけど、/var/log/secureにsftpのログを追記したくなかったので変更する。<br />新規にlocal1というファシリティを作成して、そのログを/var/log/sftp.logに出力するように設定。<br />作成後、syslogの再起動が必要。<br /><br />　echo "local1.* /var/log/sftp.log" &gt;&gt; /etc/syslog.conf<br /><br />【 SSHの認証方法の変更 】<br />最後にbashも持つアカウントは鍵認証をさせて、ｓｆｔｐ専用のユーザーはパスワード認証をさせる。<br /><br />[/etc/ssh/sshd_config]<br />全ユーザー共通の設定（鍵認証させる）<br />PubkeyAuthentication yes<br />AuthorizedKeysFile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ssh/authorized_keys<br />PasswordAuthentication no<br /><br />sftpユーザーはMatchのこんな感じになる。<br />&nbsp;<br />Match Group chrootgroup<br />PasswordAuthentication yes<br />AllowAgentForwarding no<br />AllowTcpForwarding no<br />ChrootDirectory /usr/local/chroot/<br />PubkeyAuthentication no<br /><br />ここまで設定したら、sshdを再起動。<br /><br />試しに、teratermからsftpユーザーで接続してみると、ユーザー名とパスワードの入力プロンプトは表示されるが、正常なパスワードであっても、一瞬rsshのエラーが出てきて接続が終了する。<br /><br /><br /> ]]>
        
    </content>
</entry>

<entry>
    <title>iphoneが壊れた・・・</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/03/iphone-1.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.408</id>

    <published>2010-03-07T14:43:36Z</published>
    <updated>2010-03-07T14:50:33Z</updated>

    <summary>電源が切れたので、充電ケーブルを差し込んで電源を入れたら、最初のリンゴマークから...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="iphone" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[電源が切れたので、充電ケーブルを差し込んで電源を入れたら、最初のリンゴマークから全然先に進まなくなった。<br /><br />修復方法を調べたら、<a href="http://d.hatena.ne.jp/yxy/20080808">こちらの記事</a>と一緒の状況とだったので、記事通りに対応すると、iTuneで認識する事に成功。<br /><br />バックアップデータが昨年の脱獄前のデータしか無かったが、取り敢えずそこまで戻せました。<br /><br />今から再脱獄と設定のやり直しです。<br /><br />修復とか言いつつ、アプリは全部入れ直しってｗ<br />]]>
        
    </content>
</entry>

<entry>
    <title>BlueCoat ProxySGの監視</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/03/bluecoat-proxysg.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.407</id>

    <published>2010-03-06T17:22:49Z</published>
    <updated>2010-03-07T12:58:55Z</updated>

    <summary>nagiosのプラグインを幅広く揃えてあるMonitoringExchangeに...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[nagiosのプラグインを幅広く揃えてある<a href="http://www.monitoringexchange.org/">MonitoringExchange</a>にも、BlueCoatProｘｙSGのプラグインが存在しなかった為、自作でプラグインを用意する事にしました。<br /><br />nagiosのプラグインの作成方法を少し調べたら、どうやら決められた終了コードを返せばよいらしい。<br /><br />終了コードはこれらしい。<br />OK=0<br />WARNING=1<br />CRITICAL=2<br />UNKNOWN=3<br />DEPENDENT=4<br /><br />で、作ってみた。<br />BlueCoatProｘｙSGのMIBを追加している環境で作ったので、MIB定義も念の為アップロードしておく。<br /><br /><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://jhh-style.homelinux.com/dabun/mt-static/blog-image/bcmib.zip">bcmib.zip</a></span><br /><div><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://jhh-style.homelinux.com/dabun/mt-static/blog-image/check_bluecoat_cpu">check_bluecoat_cpu</a></span></div><div><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://jhh-style.homelinux.com/dabun/mt-static/blog-image/check_bluecoat_mem">check_bluecoat_mem</a></span></div><div><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://jhh-style.homelinux.com/dabun/mt-static/blog-image/check_bluecoat_disk1">check_bluecoat_disk1</a></span></div><div><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://jhh-style.homelinux.com/dabun/mt-static/blog-image/check_bluecoat_disk2">check_bluecoat_disk2</a></span></div><div><br /><br />全てbashで書いています。<br /><br />例によって、私はプログラマではありませんので、ご使用は自己責任でお願いします。<br /><br />両方のdiskの状態を取得出来るOIDはあったのですが、snmpwalkでの取得結果が2行表示されますが、nagiosのWEB画面には1行しか送信出来ないの部分をどのように表示させれば分かりやすいのかを考えるのがメンドくさかったので、プラグイン自体を2つに分けていますｗ<br /><br />チェックファイルの使い方は、各ファイルをエディタで開き、<br />　HOST=監視対象のIPアドレス<br />　COMMUNITY=SNMPのコミュニティ名<br />　CRITICAL=クリティカルにする値（パーセント）<br />　WARNING=ワーニングにする値（パーセント）<br />を修正して下さい。<br /><br />来週は内部温度監視と、ファン回転数監視のプラグインを作成してみますｗ<br /><br />それにしても、BlueCoat ProxySGのCPU使用率が、夜中でも100%に達してクリティカルのアラートがガンガン飛んでくる。<br />全て2分程度で正常値に戻るので、保存されたキャッシュのクリーニングとかの処理を定期的に実施しているのかな。<br /><br />なんにしても、アラートメールが結構うざいので、BlueCoat ProxySGのCPU監視のインターバルだけ調整が必要かもしれない。<br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>centreonよりnagiosの日本語版の方が使いやすい</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/03/centreonnagios.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.406</id>

    <published>2010-03-05T19:04:44Z</published>
    <updated>2010-03-05T19:13:47Z</updated>

    <summary>http://www.centreon.com/先週末に、会社のnagiosに、...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[<a href="http://www.centreon.com/">http://www.centreon.com/</a><br /><br />先週末に、会社のnagiosに、フロントエンドGUIのcentreonをインストールしてみたが、インストールが面倒くさい割には、思ったよりインターフェースが使い辛い。<br /><br /><br />上司にチラっと画面を見せたけど、案の定反応がイマイチだったので、会社での利用はしない事にする。<br />]]>
        
    </content>
</entry>

<entry>
    <title>拡張MIBの設定</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/03/mib.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.405</id>

    <published>2010-03-05T18:52:03Z</published>
    <updated>2010-03-05T19:04:10Z</updated>

    <summary>拡張MIBの追加設定でハマったので、自分用のメモ。・RPMでnet-snmpをイ...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[拡張MIBの追加設定でハマったので、自分用のメモ。<br /><br />・RPMでnet-snmpをインストールした時に作成される、標準のMIBディレクトリは、/usr/share/snmp/mibsになる。<br /><br />・MIBの定義は１つしかインストールできない。同じ定義をロードさせた場合、後から追加した定義が既存の定義を上書きする形でロードされる為、拡張MIBを追加する場合は、標準のMIB定義を上書きしないように必要なものだけをロードさせる。<br /><br />※ベンダーが提供しているMIB全てをロードさせると、大変な目に合う　←　ここで1日はまった。<br /><br />・拡張MIBは、場所を指定するだけで勝手にロードされる。<br /><br /><br />拡張MIBを追加する方法は以下の３つ。<br /><br />・/usr/share/snmp/mibsディレクトリに定義ファイルを入れる。<br /><br />・/etc/snmp.confファイルを作成し、<br />　mibdirs /usr/share/snmp/mibs:拡張MIBを格納ししているディレクトリ<br />　mibs = ALL<br />　と記述する。（システム全体に適用する場合）<br />※標準のMIBディレクトリと、拡張MIBディレクトリの間は、「:（コロン）」で区切る。<br /><br />・$HOME/.snmp/snmp.confに、<br />　mibdirs /usr/share/snmp/mibs:拡張MIBを格納ししているディレクトリ<br />
　mibs = ALL<br />
　と記述する。（ユーザーだけに適用する場合）<br /><br />]]>
        
    </content>
</entry>

<entry>
    <title>Linux版のnrpe</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/02/linuxnrpe.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.402</id>

    <published>2010-02-09T08:40:24Z</published>
    <updated>2010-02-09T08:48:28Z</updated>

    <summary>現在、シコシコと社内用の監視システムを構築中。監視対象はWindowsOSとLi...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[現在、シコシコと社内用の監視システムを構築中。<br /><br />監視対象はWindowsOSとLinuxOSが混在しているのが、リソース監視やらプロセス監視などの手法は統一したかったので、nrpeを使うことにした。<br /><br />インストール方法などは省くが、Windows版のnrpeはdont_blame_nrpeの値を「1」にするだけで、$ARG$での引数設定が行えたが、Linux版のnrpeはdont_blame_nrpeを変えても<br />「CHECK_NRPE: Received 0 bytes from daemon.&nbsp; Check the remote server logs for error messages.」<br />と言ったエラーメッセージが表示されて接続出来なかった。<br /><br />半日ググッてやっと解決。<br /><br />どうやら、セキュリティ上の理由から、nrpeインストール時にのconfigureに--enable-command-argsを付加してあげないとダメらしい。<br /><br />先週Linuxサーバにインストールしたnrpeを全部入れ直しかよ！<br />]]>
        
    </content>
</entry>

<entry>
    <title>システム管理者が&quot;暴君&quot;になるとき</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/02/post-63.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.401</id>

    <published>2010-02-08T06:08:04Z</published>
    <updated>2010-02-08T06:09:41Z</updated>

    <summary>古い記事だが、こんなの見つけた。システム管理者が暴君になる時気をつけよう・・・。...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="日記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[古い記事だが、こんなの見つけた。<br /><br /><a href="http://www.itmedia.co.jp/enterprise/articles/0507/25/news007.html">システム管理者が暴君になる時</a><br /><br />気をつけよう・・・。<br /> <div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>updatedbが通らない</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/02/updatedb.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.400</id>

    <published>2010-02-04T04:58:42Z</published>
    <updated>2010-02-04T05:00:33Z</updated>

    <summary>CentOS5.4って、updatedbが標準でインストールされないのかな？ググ...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[CentOS5.4って、updatedbが標準でインストールされないのかな？<br /><br />ググッたら「mlocate」ってパッケージをインストールすると、updatedbやlocateが使えるらしい。<br /><br /><br /> ]]>
        
    </content>
</entry>

<entry>
    <title>ディスクが死んだ</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/01/post-17.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.398</id>

    <published>2010-01-28T13:22:55Z</published>
    <updated>2010-01-28T13:24:49Z</updated>

    <summary><![CDATA[会社で個人的に使っているCentOSからのlogwatch&nbsp;&nbsp...]]></summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[会社で個人的に使っているCentOSからのlogwatch<br /><br />&nbsp;<br />&nbsp;--------------------- Kernel Begin ------------------------ <br /><br />&nbsp;WARNING:&nbsp; Kernel Errors Present<br />&nbsp;&nbsp;&nbsp; end_request: I/O error, dev hda, sector ...:&nbsp; 3 Time(s)<br />&nbsp;&nbsp;&nbsp; hda: dma_intr: error=0x40 { Uncorrect ...:&nbsp; 3 Time(s)<br />&nbsp;&nbsp;&nbsp; hda: dma_intr: status=0x51 { DriveReady SeekComplete Error } ...:&nbsp; 3 Time(s)<br /><br /><br />再起動してもダメっぽいので、また作り直しか。<br />最悪、書き換えのデータとかは引っ張ってこれないかな。<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>tracのタイムライン</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/01/trac.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.396</id>

    <published>2010-01-20T04:31:49Z</published>
    <updated>2010-01-20T04:34:42Z</updated>

    <summary>会社で使っているTracのタイムラインが、1/13を境に表示されなくなってしまっ...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[会社で使っているTracのタイムラインが、1/13を境に表示されなくなってしまった。<br /><br />更新ボタンを押してもダメ。<br /><br />いろいろ情報をググッていると、どうやらtrac.iniファイルのパラメータを設定してあげると良いらしい。<br /><pre><br />[timeline]<br />ticket_show_details = true<br /><br />にして、Apacheを再起動。<br /><br />問題く表示されるようになったが、今まで「false」に設定されていてもタイムラインが表示されていたのは何故だろう？<br /></pre><br /> ]]>
        
    </content>
</entry>

<entry>
    <title>イオン　越谷レイクタウンのホームページ</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/01/post-62.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.394</id>

    <published>2010-01-10T01:31:24Z</published>
    <updated>2010-01-10T02:56:53Z</updated>

    <summary>レイクタウンのホームページのTOPが改ざんされてる？自宅（Windows、Ubu...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="日記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[<a href="http://www.aeon-laketown.jp/">レイクタウン</a>のホームページのTOPが改ざんされてる？<br /><br />自宅（Windows、Ubuntu）と3G環境のiphoneから繋いでもNG。<br /><br />画像も含め、ほとんどのの表示が行えない。<br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://jhh-style.homelinux.com/dabun/assets_c/2010/01/AEON%20LAKE%20TOWN-214.php" onclick="window.open('http://jhh-style.homelinux.com/dabun/assets_c/2010/01/AEON LAKE TOWN-214.php','popup','width=1265,height=2653,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://jhh-style.homelinux.com/dabun/assets_c/2010/01/AEON%20LAKE%20TOWN-thumb-600x1258-214.jpg" alt="AEON LAKE TOWN.jpg" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" width="600" height="1258" /></a></span><br /><br /><br />レイクタウンに電話して、改ざんされている可能性を教えてあげたら、<br /><br />「ウチ（店舗側）ではサイトを変更していない」<br /><br />「ちゃん見れている」<br /><br />と返答がきた。<br /><br />まぁ、いいや。<br /><br />取り合えずPCのウィルススキャンだけやっとこう。<br /><br /><br /> <div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>MovableTypeの脆弱性</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2010/01/movabletypeno.php" />
    <id>tag:jhh-style.homelinux.com,2010:/dabun//3.393</id>

    <published>2010-01-09T15:30:58Z</published>
    <updated>2010-01-09T15:52:08Z</updated>

    <summary>1月6日付けで、MovableTypeの脆弱性が発見されたらしい。対応するには、...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="日記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[1月6日付けで、MovableTypeの脆弱性が発見されたらしい。<br /><br />対応するには、4.27か5.01にアップグレードすればいいらしいが、以下の問題がある事。<br /><br />4.27　・・・今年の11月にサポートが終了する。<br />5.01　・・・PostgreSQLを未サポート<br /><br />このブログを書いている自鯖のDBはPostgreSQL・・・。<br /><br />新機能も気になるから、テストで5.01もアップグレードしてみたけど、使っているプラグインのほとんどが未対応になってしまったので、とりあえず4.27にアップグレードして、テスト書き込みも含めて様子見。<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>ロードバランサーの動作</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/12/post-61.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.381</id>

    <published>2009-12-09T07:48:33Z</published>
    <updated>2009-12-09T07:50:52Z</updated>

    <summary>syslogさんからロードバランサーの動作概要を引用させて頂きます。 ▼leas...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="ネットワーク" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[<a href="http://syslog.jugem.jp/?eid=12">syslogさん</a>からロードバランサーの動作概要を引用させて頂きます。<br /><br /><br />
▼least connections ＜リースト・コネクション＞ [動的]<br />
最もコネクション数の少ないサーバを選択してロードバランスを行う。<br />
▼hash ＜ハッシュ＞ [動的]<br />
クライアントのIPアドレスをハッシュ値計算し、相対させたサーバにバランシングする。つまりあるIPアドレスのものは常にそのサーバにバランシングされる。<br />
▼round robin ＜ラウンド・ロビン＞ [静的]<br />
複数のサーバに対して均等にロードバランスを行う。<br />
<br />
▼fastest ＜ファーステスト＞ [動的]<br />
最も速く応答するサーバを選択してロードバランスを行う。<br />
▼observed ＜オブザーブド＞ [動的]<br />
サーバのコネクション数と応答速度を監視して、ロードバランスを行う。<br />
▼predictive ＜プリディクティブ＞ [動的]<br />
サーバのコネクション数と応答速度を監視し、各サーバのパフォーマンスを予測してロードバランスを行う。<br />
▼priority ＜プライオリティ＞ [静的]<br />
あらかじめ指定されたサーバグループ毎の優先度に応じてロードバランスを行う。<br />
▼ratio ＜レシオ＞ [静的]<br />
複数のサーバに対してあらかじめ指定した割合に応じてロードバランスを行う。<br />
▼static load balancing ＜スタティック・ロードバランシング＞ [静的]<br />
あらかじめ定義された基準リストに基づいて接続配分を行う方式。その基準としては、現在のサーバ性能や現在の接続負荷は考慮していない。<br />]]>
        
    </content>
</entry>

<entry>
    <title>ソースから入れたapacheのlogwatchの設定</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/12/apachelogwatch.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.380</id>

    <published>2009-12-09T06:26:54Z</published>
    <updated>2009-12-09T06:45:05Z</updated>

    <summary>apacheに限らず、/var/log/配下にログを出力しないものは、デフォルト...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[apacheに限らず、/var/log/配下にログを出力しないものは、デフォルトのlogwatchでは集計されない。<br /><br />/var/log/意外の場所にあるログファイルも集計の対象とする場合、logwatchのサービス毎の設定を変更する必要がある。<br /><br /><br />（以下はCentOS5.4の場合。CentOS4はディテクトりが違うらしい。）<br /><br />【場所：/usr/share/logwatch/default.conf/logfiles】<br /><br />ディテクトりの中は、使っている、使っていないに関わらず、サービス毎の設定ファイルがたくさんあります。<br />autorpm.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; emerge.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maillog.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qmail-pop3ds-current.conf&nbsp; secure.conf&nbsp;&nbsp;&nbsp;&nbsp; windows.conf<br />cisco.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exim.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; messages.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qmail-send-current.conf&nbsp;&nbsp;&nbsp; sonicwall.conf&nbsp; xferlog.conf<br />clam-update.conf&nbsp; extreme-networks.conf&nbsp; netopia.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qmail-smtpd-current.conf&nbsp;&nbsp; syslog.conf&nbsp;&nbsp;&nbsp;&nbsp; yum.conf<br />cron.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; netscreen.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resolver.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tac_acc.conf<br />daemon.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iptables.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pureftp.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rt314.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up2date.conf<br />dnssec.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kernel.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qmail-pop3d-current.conf&nbsp; samba.conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vsftpd.conf<br /><br /><br />Apacheのログ出力に関する設定を変更する場合、「http.conf」を修正します。<br /><br /><b>LogFile行と、Archive行にApacheのログ出力場所を記述</b><br /><br /># What actual file?&nbsp; Defaults to LogPath if not absolute path....<br />LogFile = httpd/*access_log<br />LogFile = apache/*access.log.1<br />LogFile = apache/*access.log<br />LogFile = apache2/*access.log.1<br />LogFile = apache2/*access.log<br />LogFile = apache-ssl/*access.log.1<br />LogFile = apache-ssl/*access.log<br /><br /><b>LogFile = "/usr/local/httpd-2.0.63/logs/access_log"<br />LogFile = "/usr/local/httpd-2.0.63/logs/access_log.1"</b><br /><br /># If the archives are searched, here is one or more line<br /># (optionally containing wildcards) that tell where they are...<br />#If you use a "-" in naming add that as well -mgt<br />Archive = archiv/httpd/*access_log.*<br />Archive = httpd/*access_log.*<br />Archive = apache/*access.log.*.gz<br />Archive = apache2/*access.log.*.gz<br />Archive = apache-ssl/*access.log.*.gz<br /><b><br />Archive = "/usr/local/httpd-2.0.63/logs/access_log"<br />Archive = "/usr/local/httpd-2.0.63/logs/access_log.1"</b><br /><br />これだけで次回のlogwatchの実行から、ソースでインストールしたApacheの情報も集計されます。<br />]]>
        
    </content>
</entry>

<entry>
    <title>googleの日本語入力</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/12/google.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.379</id>

    <published>2009-12-04T05:22:02Z</published>
    <updated>2009-12-04T05:25:07Z</updated>

    <summary>googleの日本語入力を会社のPCに入れてみた。まぁ、おもしろいからしばらく使...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Windows" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[googleの日本語入力を会社のPCに入れてみた。<br /><br />まぁ、おもしろいからしばらく使ってみようｗ<br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="20091204.jpg" src="http://jhh-style.homelinux.com/dabun/images/20091204.jpg" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="311" width="419" /></span><br /><br /><br />Google 日本語入力<br /><a href="http://www.google.com/intl/ja/ime/">http://www.google.com/intl/ja/ime/</a><br /> <div><br /></div>]]>
        
    </content>
</entry>

</feed>
