« vodafone機種変更市価調 | メイン | 交通センサス »
2005年11月16日
IPOまた落選/JALアワード2割引/MRTGインストール |
午後出陣。 引き続きノンデグレード検証兼汎用画像確認ツールの作成。 コアの機能は実装がほぼ完了。ドライバで無限のバリエーションを制御することであらゆる場面を再現させることが可能となりそうだ。
IPO抽選が今日も行われたが、案の定落選。このところ6回ほど連続して落選。個人投資家が増えているので仕方がないところか。 複数の証券会社に口座を開設し、それぞれから購入申し込みをすれば多少は当選確率があがるだろうが、投資活動にそれほど時間をさけないわしらには少々難しい。
来年1月のシドニー遠征の帰国便をそろそろFIXさせないといけない。シドニー発券の予約を依頼していたが、昨今の豪ドル高(1AUD:90JPY程度)と、航空運賃自体の値上げ続き発券依頼に躊躇していた。 ふと妙案がひらめいた。今月一杯JALのアワード(マイレージ特典航空券)が2割引であった。海外発はディスカウントの対象外と思い込んでいたが、日本着の旅程ならOKだし、実際わしは先日もソウル発札幌ゆきのJALアワードを発券したばかりだった。 早速空席照会をしてみると、希望日に空席がまだあった。 有償航空券はキャンセルすることにして、アワードをその場で手続きした。海外発日本行きは日本で1回ストップオーバ(途中降機)できるので、往路をシドニー発沖縄行き、復路を東京発シドニー行きにしておく。復路は現在のところ搭乗日未定なので2006年9月末にしておいた(発券日野翌日から1年間有効)。消費マイル数は32000マイル(通常40000マイル)。 シドニー発日本行きのディスカウント運賃が1500AUD(135000円)とすると、マイル単価は約4.5円/マイル。まあまあお得であろうと、言い聞かせたい。
思うところがありまして、新サーバtsubameへMRTGのインストールを行った。
まずはnet-snmpのインストール
http://net-snmp.sourceforge.net/)よりnet-snmp-5.0.10.2.tar.gzを入手し、インストール
# tar zxvf net-snmp-5.07.tar.gz
# cd net-snmp-5.07
# ./configure
(略)
@ITBOOSTによると、
configureスクリプトを実行すると、その処理の1つとしてソフトウェアの基本構成や管理者のアドレスなどを対話的に入力し、include/net-snmp/net-snmp-config.hを作成するためのメッセージが表示されます。
************** Configuration Section **************
You are about to be prompted with a series of questions. Answer
them carefully, as they determine how the SNMP agent and related
applications are to function.
After the configure script finishes, you can browse the newly
created config.h file for further - less important - parameters to
modify. Be careful if you re-run configure though, since config.h will
be overwritten.
-Press return to continue-
disabling above prompt for future runs... yes
checking Default version of SNMP to use...
ここではSNMPのデフォルトバージョンを選択します。
*** Default SNMP Version:
Starting with Net-SNMP 5.0, you can choose the default version of
the SNMP protocol to use when no version is given explicitly on the
command line, or via an 'snmp.conf' file. In the past this was set to
SNMPv1, but you can use this to switch to SNMPv3 if desired. SNMPv3
will provide a more secure management environment (and thus you're
encouraged to switch to SNMPv3), but may break existing scripts that
rely on the old behaviour. (Though such scripts will probably need to
be changed to use the '-c' community flag anyway, as the SNMPv1
command line usage has changed as well.).
At this prompt you can select "1", "2" (for SNMPv2c), or "3" as
the default version for the command tools (snmpget, ...) to use. This
can always be overridden at runtime using the -v flag to the tools, or
by using the "defVersion" token in your snmp.conf file.
Default version of SNMP to use (3):
setting Default version of SNMP to use to... 3
checking System Contact Information...
連絡先として、管理者のメールアドレスを指定します。
*** System Contact Information:
Describes who should be contacted about the host the agent is
running on. This information is available in the MIB-II tree. This
can also be over-ridden using the "syscontact" syntax in the agent's
configuration files.
System Contact Information (root@):
setting System Contact Information to...
checking System Location...
システムのロケーションを指定します。管理するシステムに対して区別しやすい文字を入力すれば構いません。
*** System Location:
Describes the location of the system. This information is
available in the MIB-II tree. this can also be over-ridden using the
"syslocation" syntax in the agent's configuration files.
System Location (Unknown): RedHat Linux 8.0 in Osaka
setting System Location to... RedHat Linux 8.0 in Osaka
checking Location to write logfile...
ログファイルの場所を指定します。デフォルトは/var/log/snmpd.logです。
*** Logfile location:
Enter the default location for the snmpd agent to dump
information & errors to. If not defined (enter the keyword "none"
at the prompt below) the agent will use stdout and stderr instead.
(Note: This value can be over-ridden using command line options.)
Location to write logfile (/var/log/snmpd.log):
setting Location to write logfile to... /var/log/snmpd.log
checking Location to write persistent information...
設定ファイルの場所を指定します。デフォルトは/var/net-snmp/snmpd.confです。
*** snmpd persistent storage location:
Enter a directory for the SNMP library to store persistent
data in the form of a configuration file. This default location is
different than the old default location (which was for ucd-snmp). If
you stay with the new path, I'll ask you in a second if you wish to
copy your files over to the new location (once only). If you pick
some other path than the default, you'll have to copy them yourself.
There is nothing wrong with picking the old path (/var/ucd-snmp) if
you'd rather.
Location to write persistent information (/var/net-snmp):
setting Location to write persistent information to... /var/net-snmp
updating cache ./config.cache
creating ./config.status
creating Makefile
creating snmplib/Makefile
creating apps/Makefile
creating apps/snmpnetstat/Makefile
creating agent/Makefile
creating agent/helpers/Makefile
creating agent/mibgroup/Makefile
creating local/Makefile
creating testing/Makefile
creating man/Makefile
creating mibs/Makefile
creating net-snmp-config
creating include/net-snmp/net-snmp-config.h
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------
Net-SNMP Version: 5.0.10.2
Building for: linux
Network transport support: Callback Unix TCP UDP
SNMPv3 Security Modules: usm
Agent MIB code: mibII ucd_snmp snmpv3mibs notification target agen
t_mibs agentx utilities
Authentication support: MD5 SHA1
Encryption support: DES
---------------------------------------------------------
(略)
configureスクリプトが終了したら、make、make installを実行します。
# make
# make install
■net-snmpの設定
上記のようにインストールした場合、設定ファイルは/usr/local/share/snmp/snmpd.confになります。しかし、このファイルはデフォルトでは存在しないので、新規にファイルを作成
com2sec : セキュリティ名
group : グループ名
view : 取得を許可する情報の範囲
access : グループに対するアクセス権
を設定するが、hayateから持ってきた。
/usr/local/share/snmp/snmpd.conf
てなことで楽にインストールが進行
snmp起動
# /usr/local/sbin/snmpd -s -l /dev/null -P /var/run/snmpd -a
続いてMRTGのインストール
http://www.mrtg.jp/doc/ からMRTG本体入手&インストール
tar zxf mrtg-2.12.2.tar.gz
cd mrtg-2.12.2
./configure
make
sudo make install
cfgファイル作成
/usr/local/mrtg-2/bin/cfgmaker \
--output=/usr/local/mrtg-2/lib/mrtg.cfg \
XXXXXX@192.168.0.X
これまたhayateから持ってきた
/usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/data/mrtg.cfg
crontab追加(root)
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/data/mrtg.cfg
できたできた。
2023:
投稿者 onsenfan [ JAL(JL), PC・インターネット , プログラミング, 投資 ] : 2005年11月16日 23:57
この記事が役に立った/おもしろいと思ったら、ワンクリックで応援お願いしますトラックバック
このエントリーのトラックバックURL:
https://blog.odorokutamegoro.com/mt-tb.cgi/603_2802963541869
このリストは、次のエントリーを参照しています: IPOまた落選/JALアワード2割引/MRTGインストール:
» MRTG インストール (サーバの統計情報をブラウザから監視) from Shoulder.jp
ネットワーク負荷、CPU使用率、空きメモリ量、ディスク使用率の統計について、ブラウザから管理・監視できるように自宅サーバにMRTGを入れることにした... [続きを読む]
トラックバック時刻: 2006年06月01日 14:52