HotSaNIC-0.5.0-pre6 "setup.pl"実行事例

Updated : 2005/04/29      
Top > 書 庫2 > HotSaNIC > HotSaNIC-0.5.0-pre6 > setup.pl 実行事例



  setup.pl を実行する

設定スクリプト setup/pl を実行すると、@個々の「HotSaNIC のモジュール」使用 、A使用するモジュールについての詳細設定事項、B関連情報の確認、について Yes/No のキー入力で返答するだけです。

【 実行事例 】

[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    # メールサーバー postfix のスプールのモニター

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 ...                  # 設定結果を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    <---- convert のパスを確認 
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 のパスを確認
SNMPWALK="/usr/local/bin/snmpwalk"
  checking path to "snmpget" (current: 'not configured')
detected: /usr/local/bin/snmpget
is this corrrect? (Y/n) > y    <---- snmpget のパスを確認
SNMPGET="/usr/local/bin/snmpget"
 checking path to "snmpbulkwalk" (current: 'not configured')
detected: /usr/local/bin/snmpbulkwalk
is this corrrect? (Y/n) > y    <---- snmpbulkwalk のパスを確認
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 を実行後、基本事項が設定済みの設定ファイル settings が自動生成されます。

返答とまちがえた場合や、後日変更する場合は setup.pl を再度実行して作りなおすこともできます。



Top > 書 庫2 > HotSaNIC > HotSaNIC-0.5.0-pre6 > setup.pl 実行事例