HotSaNIC-0.5.0-pre6 情報

Updated : 2004/05/07      
Top > 書庫2 > HotSaNIC > HotSaNIC-0.5.0-pre6



HotSaNIC-0.5.0-pre6-snapshot のインストール手順を公開していますのでごらんください。
 URL :  http://whzat.minidns.net/shoko2/hotsanic50p6/

■ このページでは 最新版 HotSaNIC-0.5.0-pre6 の情報をお伝えします
 HotSaNIC の公式サイトには、HotSaNIC の HotSaNIC-0.5.0-pre6-snapshot (2004/11/10)がアップされています。
わたしはまだ実際には使用していませんが、スクリプトを実行した情報などを書いておきます。

現在使用中の HotSaNIC に比べて、機能が拡張されています。NTP 関連情報もグラフでモニターできるようです。
また、HotSaNIC-0.5.0-pre5 ではすんなり動かなかった setup.pl も改善されています。
このページでは、添付のドキュメントと setup.pl の実行情報だけを掲載します。
■  ページのメニュー 
  1. README  
  2. setup.pl の実行 
  3. 備忘録 


  README

README を読みます。

[root@march HotSaNIC]# more README

HotSaNIC - HTML overview to System and Network Information Center

first script by Bernd Pissny  in  09/2000
first released test-version  in  11/2000


This is just a quick install documentation. For further
description, installation notes and troubleshooting,
please take a look at the ./Documentation/ directory.


PREREQUISITES:
------------------------------
- HotSaNIC needs Tobias Oetiker's "rrdtool" to operate.
  Get it at http://www.rrdtool.com/

- The ImageMagick pagkage is a nice-to-have, it's needed
  to create the small thumbnails on the main index page.

- The setup routines need "locate" to be installed to be fully
  functional. Make sure your locate database is up to date.

- some modules rely on system binaries.


QUICK INSTALLATION NOTES:
------------------------------
- copy all files to the destination directory
- "./setup.pl" from this directory
- answer all questions
- check main "settings" file
- check all modules' "settings" files
  (they will be linked to ./var/settings/)
- start the thing with "./rrdgraph start"


CONTACT:
------------------------------
Bernd Pissny
hotsanic@bernisys.prima.de
http://www.bernisys.prima.de/

[root@march HotSaNIC]#




   setup.pl の実行  

設定スクリプト setup.pl を実行させたようすです。

[root@march HotSaNIC-5-6]# ./setup.pl  
Configuring modules:

Module found: APCUSV      # APC社のUPS電源バックアップシステムのモニター

Description:
   Records some APC-UPS specific readouts:
    - load percentage
    - battery percentage
    - time left when on battery
    - output voltage
    - system temperature
    - battery voltage
Do you want to use this module? (Y/n) > n

----------------------------------------

Module found: APPS      # アプリケーション ソフトウェアのモニター

Description:
   Records the number of instances of the specified applications.
Do you want to use this module? (Y/n) > n

----------------------------------------

Module found: BIND     # DNS サーバーのモニター

Description:
   Records statistics from the ISC BIND nameserver
Do you want to use this module? (Y/n) > n

----------------------------------------

Module found: DISKIO    # ハードディスクの入出力モニター

Description:
   Records I/O statistics for harddisks.
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

Module found: DNET     # 分散ネットワーク

Description:
   Records stats for Distributed.net personal proxies
Do you want to use this module? (Y/n) > n

----------------------------------------

Module found: MAILQ    # メールサーバーのスプールのモニター

Description:
   Records outbound mail status.
   Currently supported mail-systems:  postfix
Do you want to use this module? (Y/n) > n

----------------------------------------

Module found: NETSTAT    # ネットワークのソケットのモニター

Description:
   Records network socket-states.
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

Module found: NETWORKS    # ネットワークインターフェースのトラフィック

Description:
   Records IP- and protocol-based traffic stats.
   ipchains/iptables required!
Do you want to use this module? (Y/n) > n

----------------------------------------

Module found: NTP     # タイムサーバー NTP  のモニター

Description:
   Records timeserver drift stats
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

Module found: PART    # ハードディスクのパーティションのモニター

Description:
   Records partition usages.
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

Module found: PING    # Ping を利用した応答時間のモニター

Description:
   Records min/avg/max ping-times for configured hosts
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

Module found: SENSORS    # Lm-Sensors を利用したハードウェアのモニター

Description:
   Records stats for configured hardware sensors
   LM-Sensors required!
   Also capable of recording HDD temperatures
   (hddtemp and SMART support required)
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

Module found: SHOUTCAST    # ShoutCast ストリーミングサーバーのモニター

Description:
   Records remote stats for ShotCast servers

   Note: The console-webbrowser "lynx" has to
   be installed to use this module.
Do you want to use this module? (Y/n) > n

----------------------------------------

Module found: SYSTEM     # OS のモニター

Description:
   Records system specific data:
    - cpu usage
    - irqs
    - loadavg
    - memory / swap
    - # of processes
    - uptime
    - # of users
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

Module found: TRAFFIC     # ネットワークインターフェースのトラフィック

Description:
   Records usage of ethernet devices (input / output)
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

Module found: WORMS    # Web サーバーに来たワームのモニター

Description:
   Records stats for worm-impacts on local webserver
Do you want to use this module? (Y/n) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

----------------------------------------

setting up diskio ...   # モニターするパーティションの選択
Use sda? (Y/n) > y
Use sdb? (Y/n) > y
Use sdb1? (Y/n) > y
Use sdb2? (Y/n) > y
Use sdb5? (Y/n) > y
Use sdb6? (Y/n) > y
Use hda? (Y/n) > y
Use hda1? (Y/n) > y
Use hda2? (Y/n) > y
Use hda3? (Y/n) > y
Use hda4? (Y/n) > y
Use hda5? (Y/n) > y
Use hda6? (Y/n) > y
Please check the settings file and adapt it to satisfy your needs.

setting up netstat ...
This module doesn't need any configuration right now.

setting up ntp ...
Please check the settings file and adapt it to satisfy your needs.

setting up part ...      # HDD のデバイスファイルとパーティションの関連付け
Use "/dev/hda2", mounted on "root filesystem"? (y/N) > y
Use "/dev/hda1", mounted on "/boot"? (y/N) > y
Use "/dev/hda6", mounted on "/tmp"? (y/N) > y
Use "/dev/hda3", mounted on "/var"? (y/N) > y
Please check the settings file and adapt it to satisfy your needs.

setting up ping ...
Please check the settings file and adapt it to satisfy your needs.
you probably have to configure some destination hosts.

setting up sensors ...

     << 途中を省略 >>

              # Lm_Sensors の Proc ファイルの関連付け

/proc/sys/dev/sensors/via686a-isa-6000/alarms:
  4609
Do you want to use this file? (y/N) > n

/proc/sys/dev/sensors/via686a-isa-6000/fan_div:
  2 2
Do you want to use this file? (y/N) > n

/proc/sys/dev/sensors/via686a-isa-6000/temp3:
  59.9 49.7 21.7
Do you want to use this file? (y/N) > y

/proc/sys/dev/sensors/via686a-isa-6000/temp2:
  59.9 49.7 27.3
Do you want to use this file? (y/N) > y

/proc/sys/dev/sensors/via686a-isa-6000/temp1:
  59.9 49.7 37.2
Do you want to use this file? (y/N) > y

/proc/sys/dev/sensors/via686a-isa-6000/fan2:
  3000 0
Do you want to use this file? (y/N) > n

/proc/sys/dev/sensors/via686a-isa-6000/fan1:
  3000 0
Do you want to use this file? (y/N) > y

/proc/sys/dev/sensors/via686a-isa-6000/in4:
  10.79 13.18 11.62
Do you want to use this file? (y/N) > n

/proc/sys/dev/sensors/via686a-isa-6000/in3:
  4.47 5.49 4.92
Do you want to use this file? (y/N) > n

/proc/sys/dev/sensors/via686a-isa-6000/in2:
  2.95 3.62 3.30
Do you want to use this file? (y/N) > n

/proc/sys/dev/sensors/via686a-isa-6000/in1:
  2.24 2.74 2.48
Do you want to use this file? (y/N) > n

/proc/sys/dev/sensors/via686a-isa-6000/in0:
  1.79 2.18 1.43
Do you want to use this file? (y/N) > n

Please check the settings file and adapt it to satisfy your needs.
for your info: this configuration is a bit tricky

setting up system ...
Please check the settings file and adapt it to satisfy your needs.

setting up traffic ...       # モニターするネットワークインターフェースの選択
Use eth0?? (y/N) > y
Use eth1?? (y/N) > y
Use lo?? (y/N) > y
Please check the settings file and adapt it to satisfy your needs.
If you have any interfaces other than 100 MBit, please change the
corrosponding default values.
Maybe there are some additional interfaces or SNMP hosts you want
to query.

setting up worms ...
Use of uninitialized value in concatenation (.) or string at ./setup.pl line 32 (#1)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in.  Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program.  For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.

Please check the settings file and adapt it to satisfy your needs.
 Ok.
Writing main settings ...                      # 設定結果のリスト表示
  checking path to "rrdtimer.pl" (current: 'not configured')
DAEMONDIR="/usr/local/HotSaNIC-5-6"
  checking path to "rrdtool" (current: 'not configured')
detected: /usr/local/rrdtool/bin
is this corrrect? (Y/n) > y
BINPATH="/usr/local/rrdtool/bin"
VARDIR="$DAEMONDIR/var/"
LOGDIR="$DAEMONDIR/var/log/"
PIDFILE="$DAEMONDIR/var/run/rrdtimer.pid"
WEBDIR="$DAEMONDIR/www"
DIAGRAMLOG="last"
LOGSIZE="200000"
LOGBACKUPS="5"
DEBUGLEVEL="0"
TIMESTAMPING="2"
STIME="120"
SCHEDULE_MIN="100"
SCHEDULE_MAX="200"
RUN="diskio netstat ntp part ping sensors system traffic worms"
AUTOINDEX="no"
WEB_BACKGROUND="bg.gif"
WEB_MENUBACKGROUND="menubg.gif"
WEB_BGCOLOR="E0E0E0"
WEB_TEXT="000000"
WEB_LINK="000080"
WEB_VLINK="800080"
WEB_ALINK="008000"
WIDTH="600"
HEIGHT="200"
IMAGEFORMAT="gif"
SHOW="diskio netstat ntp part ping sensors system traffic worms"
ORDER="traffic system part ping dnet sensors"
DTIME="15"
CTIME="24"
  guessing convert method...
  checking for Image::Magick perl module... not found
  checking path to "convert" from ImageMagick (current: 'not configured')
detected: /usr/bin/convert
is this corrrect? (Y/n) > y
CONVERTMETHOD="ImgMgck"
CONVERTPATH="/usr"
THUMBSIZE="20%"
REFRESH="300"
  checking path to "snmpwalk" (current: 'not configured')
detected: /usr/local/bin/snmpwalk
is this corrrect? (Y/n) > y
SNMPWALK="/usr/local/bin/snmpwalk"
  checking path to "snmpget" (current: 'not configured')
detected: /usr/local/bin/snmpget
is this corrrect? (Y/n) >
SNMPGET="/usr/local/bin/snmpget"
 checking path to "snmpbulkwalk" (current: 'not configured')
detected: /usr/local/bin/snmpbulkwalk
is this corrrect? (Y/n) > y
SNMPBULKWALK="/usr/local/bin/snmpbulkwalk"

 --- Main settings generated. ---

Writing start/stop script "rrdgraph" ... Ok.

Now adapt all settings files to satisfy your needs.
They are all linked to the directory  <HotSaNIC_installdir>/var/settings .

[root@march HotSaNIC-5-6]#
スクリプト setup.pl の実行後は、前バージョン 0.5.0-pre5 と同じ手順で 各モジュールごとに設定ファイル settings の詳細設定をします。



  備忘録

 2004年12月26日に自宅サーバーを リプレースして、ハードウェアとサーバーソフトを新しくしました。
そのニューサーバーのスタート直前に HotSaNIC-0.5.0-pre6-snapshot のリリースに気づきました。
現在稼動中の HotSaNIC-0.5.0-pre5 は、数台のPCのテストで安定した動作をすることが確認できていました。pre6 も試したかったのですが、思案の末に安全策として当サーバーでは HotSaNIC-0.5.0-pre5 を現在使っています。
このソフトウェアは、setup.pl で煩雑な設定作業を自動的に設定できるので使いやすくなっています。

【 謝辞 】
 HotSaNIC の開発グループおよび、関連するソフトウェアを開発してくださった多くの技術者の方たちに感謝します。



もどる もどる          Top > 書庫2 > HotSaNIC > HotSaNIC-0.5.0-pre6