« 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:
2023年11月15日のつぶやき 2023年11月15日のつぶやき(28件) 08:45 もるげん 10:55 事務所の室温は19C ここ数日で一気に下がった。 11:22 6月に買ったエアコン、まだ暖房運転したことなかった。検証がてらスイッチオン 11:43 @hirok...
2022:
2022年11月15日のつぶやき 2022年11月15日のつぶやき(43件) 00:17 日本はもう日付が変わったか 00:28 @pivomania まだ帰りたくないわん 00:32 台湾の徐巧芯さんが除悪と読み替えてるのは視点が違う! https://t.co/cRi6...
2021:
2021年11月15日のつぶやき 2021年11月15日のつぶやき(31件) 08:41 もるげん 09:11 金曜日よりいい条件で手仕舞いできた。週末の交通費を回収 09:23 @hirokun88 @yasuhiroUENO 노시 09:25 @Cossy_5241 w...
2020:
2020年11月15日のつぶやき 2020年11月15日のつぶやき(46件) 00:19 西鉄リゾートインの対面 (@ ファミリーマート リースビル店 in 那覇市, 沖縄県) https://t.co/AcHLlVSs5N 01:27 @mizufo0529 ぞっとしない...
2019:
2019年11月15日のつぶやき 2019年11月15日のつぶやき(68件) 00:18 ドイツのプリペイドSIMを延命。サードパーティにカードで支払ってTopUp codeを発行してもらった。 00:20 @NGSKSNJR OKMT? 00:21 @yasuhiroUE...
2018:
2018年11月15日のつぶやき 2018年11月15日のつぶやき(31件) 00:16 ホワイト隊員が早速天使と悪魔を堪能してるようだ。 00:21 TPE-xTYO-xOKA-HND-TSAで16000TWD++かー 08:31 もるげん 08:42 @hirokun8...
2017:
2017年11月15日のつぶやき 2017年11月15日のつぶやき(41件) 08:10 もるげん 10:20 今夜はISG経由で金沢行かない戸棚 11:29 @haiyo_2san ノシ 乙でした 11:33 @yasuhiroUENO あ!ミドリムシだ! 11:34 @...
2016:
2016年11月15日のつぶやき 2016年11月15日のつぶやき(35件) 00:00 @yasuhiroUENO ない!空気がない!ロストインスペースですよ! 00:11 @yasuhiroUENO いえ!なんでもありません!申し訳ありません! 00:13 国鉄色レンタ...
2015:
2015年11月15日のつぶやき 2015年11月15日のつぶやき(18件) 01:12 @WiLL_VS_4 修行乙でした! 10:17 もるげん忘れてた 16:33 近所の寺でサクラが咲いてた。ジュウガツザクラかなあ #sakura https://t.co/YFQnK...
2014:
2014年11月15日のつぶやき 2014年11月15日のつぶやき(42件) 00:00 145円になるんじゃないか?boo #EUR 00:00 @gkr596 #ボンビー (?) 00:02 @gkr596 リスケでセフセフ 00:50 明日労働じゃなかったら #CEW...
2013:
2013年11月15日のつぶやき 2013年11月15日のつぶやき(19件) 00:34 @tkgr6000 @WiLL_VS_4 呉越(ry 07:50 もるげん 10:07 @nomobucho ノ 14:05 またVPNサーバがストライキ。 予備機を代打に送ることにし...
2012:
2012年11月15日のつぶやき 2012年11月15日のつぶやき(33件) 07:15 もるげん 11:15 @WiLL_VS_4 ノ 11:15 @nomobucho ノ 11:18 @netartjp お、リアル上京でしたか ノ 11:31 @kumagaijinya...
2011:
2011年11月15日のつぶやき 2011年11月15日のつぶやき(45件) 08:34 もるげん 08:49 @mikahuck ノ 10:40 @7_mo BCホイホイですな。さすが。 10:47 @7_mo 那覇宮古も安いウチに回数稼いでお安くサファイアへ( 10:4...
2010:
2010年11月15日のつぶやき 2010年11月15日のつぶやき(8件) 00:08 おやおや、荒れてますなあ。短気は損気 by 紅茶君 QT @hanaoibito: …Excelが落ちて15分くらいの作業が吹っ飛んだ。ちくしょー。ユーザーインターフェースを改悪するヒマ...
2008:
紀勢線で久々の国盗り (画像は後日)  7:30起床。昨夜は少々飲酒量が多かったためか、軽い頭痛。二日酔いであろう。参ったな。はちみつはないので、コーヒーやお茶を飲んでおく。8:30チェックア
ぷらっとこだま 鶴舞での落ち穂も終えてこだまで帰りますぷらっとこだまに1000円アップしてG車にしてみました 時間はかかりますがのぞみ自由席より安い8700円でワンドリンクつきです お疲れ様でした (画像は見られない場合があります)...
落ち穂拾い 鳥羽から快速みえ4連で名古屋へ 新幹線まで時間があるので国盗り 本巣国をフォロー駅はほづみで 自治体はみずほなのね (画像は見られない場合があります)...
多気 特急ワイドビュー南紀で多気へ到着話題のレストランまごの店が気になりますが、今日は時間の関係で見送りですこれより鳥羽に寄り道なり (画像は見られない場合があります)...
特急オーシャンアロー 関西からの帰りは紀勢線回りで国盗りしながら戻ってます。この区間乗るのは新宮夜行以来10年以上ぶりだ車窓から太平洋が見えるものの、本日は雨で視界不良なり (画像はすれ違った特急スーパーくろしお)以下呪文283系×9サハ283-7ロザ2、ハザ5...
2007:
打ち上げ大会  出陣。新機能実装検討。Bリストをもらって順次GETするのがベストか。 Z案件レクチャ。  夜NR案件打ち上げ会。リリースはまだだが、ほぼOKの由にて先行打ち上げ@土風炉銀座一丁目。サッポロラガー(赤星)xn。奇蛮各位、BARA部長、HG部...

投稿者 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

コメント

コメントしてください




保存しますか?


counter
13