検索

カレンダー

2010年11月
« 10月   12月 »
1234567
891011121314
15161718192021
22232425262728
2930  

広告

ブログランキング・にほんブログ村へ
にほんブログ村

東電電力供給情報

カテゴリー

最近のコメント

リンク

CentOS5.5にHotSaNICをインストールしてサーバー監視

投稿者:yasu 更新日時:2010年11月14日 15時06分54秒
カテゴリCentOS, Linux

CentOS5.5にHotSaNICを導入してサーバ監視をしたいと思います。

■参考サイト■
はじめての自宅サーバ構築 - Fedora/CentOS - サーバ監視(HotSaNIC + RRDTool)
ハードディスクの温度を測定する方法 - Linuxで自宅サーバ構築(新森からの雑記)

RRDTool(HotSaNIC関連パッケージのひとつ)インストール用dagレポジトリ有効化

RRDToolをyumでインストールする為にdagレポジトリを有効にします。

[root@centos ~]# vi /etc/yum.repos.d/CentOS-Dag.repo
[dag]
name=CentOS-$releasever - Dag
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
# enabledの値を0から1に変更
enabled=0

enabled=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

ファイルを保存してviエディタを終了します

HotSaNIC関連パッケージインストール

HotSaNIC関連パッケージをインストールします。

[root@centos ~]# yum -y install rrdtool net-snmp net-snmp-utils ImageMagick hddtemp

RRDTool(HotSaNIC関連パッケージのひとつ)インストール用dagレポジトリ無効化

RRDToolをyumでインストールしたらdagレポジトリを無効にします。

[root@centos ~]# vi /etc/yum.repos.d/CentOS-Dag.repo
[dag]
name=CentOS-$releasever - Dag
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
# enabledの値を1から0に変更
enabled=1

enabled=0
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

ファイルを保存してviエディタを終了します

hhdtemp用設定ファイルダウンロード

hhdtemp用設定ファイルをダウンロードします。

[root@centos ~]# wget -O /etc/hddtemp.db http://www.guzu.net/linux/hddtemp.db

HotSaNICインストール

HotSaNICをインストールします。

[root@centos ~]# cd /usr/local
[root@centos local]# wget http://sourceforge.net/projects/hotsanic/files/hotsanic/0.5.0-pre5/hotsanic-0.5.0-pre5.tgz/download

[root@centos local]# tar -xzvf hotsanic-0.5.0-pre5.tgz

HotSaNIC設定ファイル作成

HotSaNICの設定ファイルをウィザード形式で作成します。
ここではひとまず全部の設定をOnにします。

[root@centos local]# cd HotSaNIC
[root@centos HotSaNIC]# ./setup.pl
Configuring modules:

Module found: APCUSV

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) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

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

Module found: APPS

Description:
Records the number of instances of the specified applications.
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: BIND

Description:
Records statistics from the ISC BIND nameserver
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: 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) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

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

Module found: MAILQ

Description:
Records outbound mail status.
Currently supported mail-systems: postfix
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: 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) > 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

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

Description:
Records stats for configured hardware sensors
LM-Sensors 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

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) > y
Do you want to show this module's graphs on the webpage? (Y/n) > y

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

Module found: SYSTEM

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

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 apcusv ...

ERROR: apcaccess could not be found.

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

setting up apps ...
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
acpid (running 1 times now) - Use this item?? (y/N) > y
aio/0 (running 1 times now) - Use this item?? (y/N) > y
aio/1 (running 1 times now) - Use this item?? (y/N) > y
aio/2 (running 1 times now) - Use this item?? (y/N) > y
aio/3 (running 1 times now) - Use this item?? (y/N) > y
ata/0 (running 1 times now) - Use this item?? (y/N) > y
ata/1 (running 1 times now) - Use this item?? (y/N) > y
ata/2 (running 1 times now) - Use this item?? (y/N) > y
ata/3 (running 1 times now) - Use this item?? (y/N) > y
ata_aux (running 1 times now) - Use this item?? (y/N) > y
atd (running 1 times now) - Use this item?? (y/N) > y
audispd (running 1 times now) - Use this item?? (y/N) > y
auditd (running 1 times now) - Use this item?? (y/N) > y
automount (running 1 times now) - Use this item?? (y/N) > y
avahi-daemon (running 2 times now) - Use this item?? (y/N) > y
bash (running 3 times now) - Use this item?? (y/N) > y
clamd (running 1 times now) - Use this item?? (y/N) > y
cqueue/0 (running 1 times now) - Use this item?? (y/N) > y
cqueue/1 (running 1 times now) - Use this item?? (y/N) > y
cqueue/2 (running 1 times now) - Use this item?? (y/N) > y
cqueue/3 (running 1 times now) - Use this item?? (y/N) > y
crond (running 1 times now) - Use this item?? (y/N) > y
cupsd (running 1 times now) - Use this item?? (y/N) > y
dbus-daemon (running 1 times now) - Use this item?? (y/N) > y
dovecot (running 1 times now) - Use this item?? (y/N) > y
dovecot-auth (running 1 times now) - Use this item?? (y/N) > y
events/0 (running 1 times now) - Use this item?? (y/N) > y
events/1 (running 1 times now) - Use this item?? (y/N) > y
events/2 (running 1 times now) - Use this item?? (y/N) > y
events/3 (running 1 times now) - Use this item?? (y/N) > y
gam_server (running 1 times now) - Use this item?? (y/N) > y
gpm (running 1 times now) - Use this item?? (y/N) > y
hald (running 1 times now) - Use this item?? (y/N) > y
hald-addon-acpi (running 1 times now) - Use this item?? (y/N) > y
hald-addon-keyb (running 2 times now) - Use this item?? (y/N) > y
hald-runner (running 1 times now) - Use this item?? (y/N) > y
hcid (running 1 times now) - Use this item?? (y/N) > y
hd-audio0 (running 1 times now) - Use this item?? (y/N) > y
hidd (running 1 times now) - Use this item?? (y/N) > y
httpd (running 9 times now) - Use this item?? (y/N) > y
imap (running 2 times now) - Use this item?? (y/N) > y
imap-login (running 5 times now) - Use this item?? (y/N) > y
init (running 1 times now) - Use this item?? (y/N) > y
irqbalance (running 1 times now) - Use this item?? (y/N) > y
kacpid (running 1 times now) - Use this item?? (y/N) > y
kauditd (running 1 times now) - Use this item?? (y/N) > y
kblockd/0 (running 1 times now) - Use this item?? (y/N) > y
kblockd/1 (running 1 times now) - Use this item?? (y/N) > y
kblockd/2 (running 1 times now) - Use this item?? (y/N) > y
kblockd/3 (running 1 times now) - Use this item?? (y/N) > y
khelper (running 1 times now) - Use this item?? (y/N) > y
khubd (running 1 times now) - Use this item?? (y/N) > y
khungtaskd (running 1 times now) - Use this item?? (y/N) > y
kjournald (running 1 times now) - Use this item?? (y/N) > y
klogd (running 1 times now) - Use this item?? (y/N) > y
kmpath_handlerd (running 1 times now) - Use this item?? (y/N) > y
kmpathd/0 (running 1 times now) - Use this item?? (y/N) > y
kmpathd/1 (running 1 times now) - Use this item?? (y/N) > y
kmpathd/2 (running 1 times now) - Use this item?? (y/N) > y
kmpathd/3 (running 1 times now) - Use this item?? (y/N) > y
kpsmoused (running 1 times now) - Use this item?? (y/N) > y
krfcommd (running 1 times now) - Use this item?? (y/N) > y
kseriod (running 1 times now) - Use this item?? (y/N) > y
ksoftirqd/0 (running 1 times now) - Use this item?? (y/N) > y
ksoftirqd/1 (running 1 times now) - Use this item?? (y/N) > y
ksoftirqd/2 (running 1 times now) - Use this item?? (y/N) > y
ksoftirqd/3 (running 1 times now) - Use this item?? (y/N) > y
kstriped (running 1 times now) - Use this item?? (y/N) > y
kswapd0 (running 1 times now) - Use this item?? (y/N) > y
kthread (running 1 times now) - Use this item?? (y/N) > y
lockd (running 1 times now) - Use this item?? (y/N) > y
master (running 1 times now) - Use this item?? (y/N) > y
mcstransd (running 1 times now) - Use this item?? (y/N) > y
md0_raid1 (running 1 times now) - Use this item?? (y/N) > y
mdadm (running 1 times now) - Use this item?? (y/N) > y
migration/0 (running 1 times now) - Use this item?? (y/N) > y
migration/1 (running 1 times now) - Use this item?? (y/N) > y
migration/2 (running 1 times now) - Use this item?? (y/N) > y
migration/3 (running 1 times now) - Use this item?? (y/N) > y
mingetty (running 6 times now) - Use this item?? (y/N) > y
mysqld (running 1 times now) - Use this item?? (y/N) > y
mysqld_safe (running 1 times now) - Use this item?? (y/N) > y
named (running 1 times now) - Use this item?? (y/N) > y
nfsiod (running 1 times now) - Use this item?? (y/N) > y
ntpd (running 1 times now) - Use this item?? (y/N) > y
pcscd (running 1 times now) - Use this item?? (y/N) > y
pdflush (running 2 times now) - Use this item?? (y/N) > y
perl (running 2 times now) - Use this item?? (y/N) > y
pickup (running 1 times now) - Use this item?? (y/N) > y
pop3-login (running 3 times now) - Use this item?? (y/N) > y
portmap (running 1 times now) - Use this item?? (y/N) > y
ps (running 1 times now) - Use this item?? (y/N) > y
qmgr (running 1 times now) - Use this item?? (y/N) > y
restorecond (running 1 times now) - Use this item?? (y/N) > y
rpc.idmapd (running 1 times now) - Use this item?? (y/N) > y
rpc.statd (running 1 times now) - Use this item?? (y/N) > y
rpciod/0 (running 1 times now) - Use this item?? (y/N) > y
rpciod/1 (running 1 times now) - Use this item?? (y/N) > y
rpciod/2 (running 1 times now) - Use this item?? (y/N) > y
rpciod/3 (running 1 times now) - Use this item?? (y/N) > y
saslauthd (running 5 times now) - Use this item?? (y/N) > y
sh (running 1 times now) - Use this item?? (y/N) > y
smartd (running 1 times now) - Use this item?? (y/N) > y
squid (running 2 times now) - Use this item?? (y/N) > y
sshd (running 5 times now) - Use this item?? (y/N) > y
su (running 1 times now) - Use this item?? (y/N) > y
syslogd (running 1 times now) - Use this item?? (y/N) > y
tlsmgr (running 1 times now) - Use this item?? (y/N) > y
udevd (running 1 times now) - Use this item?? (y/N) > y
unlinkd (running 1 times now) - Use this item?? (y/N) > y
watchdog/0 (running 1 times now) - Use this item?? (y/N) > y
watchdog/1 (running 1 times now) - Use this item?? (y/N) > y
watchdog/2 (running 1 times now) - Use this item?? (y/N) > y
watchdog/3 (running 1 times now) - Use this item?? (y/N) > y
xfs (running 1 times now) - Use this item?? (y/N) > y
yum-updatesd (running 1 times now) - Use this item?? (y/N) > y
Please check the settings file and adapt it to satisfy your needs.

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

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

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

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

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

setting up networks ...
Configuring local interfaces.
(i)nternal means an interface pointiong to your local machines (intranet)
(e)xternal means an interface connecten with the internet
(n)one means you don't want to account this interface.
found eth0 - (i)nternal, (e)xternal or (n)one? > i
found lo - (i)nternal, (e)xternal or (n)one? > i
Please check the settings file and adapt it to satisfy your needs.

setting up part ...

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 have to configure some destination hosts.

setting up sensors ...

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

setting up shoutcast ...

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

setting up system ...

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

setting up traffic ...

Configuring local interfaces. Please answer these:
found: eth0 - (y)es or (n)o ? y

found: lo - (y)es or (n)o ? y

Please check the settings file and adapt it to satisfy your needs.
If you have any interfaces slower 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 ...

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"
checking path to "rrdtool" (current: 'not configured')
detected: /usr/bin
is this corrrect? (Y/n) > y
BINPATH="/usr/bin"
VARDIR="$DAEMONDIR/var/"
LOGDIR="$DAEMONDIR/var/log/"
PIDFILE="$DAEMONDIR/var/run/rrdtimer.pid"
DIAGRAMLOG="last"
LOGSIZE="200000"
LOGBACKUPS="5"
DEBUGLEVEL="-1"
STIME="120"
SCHEDULE_MIN="100"
SCHEDULE_MAX="200"
RUN="apcusv apps bind diskio dnet mailq netstat networks part ping sensors shoutcast system traffic worms"
WEBDIR="not configured"
WIDTH="600"
HEIGHT="200"
IMAGEFORMAT="gif"
SHOW="apcusv apps bind diskio dnet mailq netstat networks part ping sensors shoutcast 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/bin/convert"
THUMBSIZE="20%"
REFRESH="300"
checking path to "snmpwalk" (current: 'not configured')
detected: /usr/bin/snmpwalk
is this corrrect? (Y/n) > y
SNMPWALK="/usr/bin/snmpwalk"
checking path to "snmpget" (current: 'not configured')
detected: /usr/bin/snmpget
is this corrrect? (Y/n) > y
SNMPGET="/usr/bin/snmpget"
checking path to "snmpbulkwalk" (current: 'not configured')
detected: /usr/bin/snmpbulkwalk
is this corrrect? (Y/n) > y
SNMPBULKWALK="/usr/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 /var/settings .

HotSaNIC設定ファイル変更

ウィザードで作成したHotSaNICの設定ファイルを一部修正します。

[root@centos HotSaNIC]# vi settings
# path to the "rrdtool" binary
# this has to be a directory !
#
# BINPATH="/usr/local/rrdtool-1.0.33/bin"
#
# BINPATHの値をnot configuredから/usr/binに変更
BINPATH="not configured"

BINPATH="/usr/bin"

# web-directory for all graphs
# this directory must be writeable for the rrdgraph tool
# because each plugin will create its own subdir here.
#
# WEBDIRの値をnot configuredから/var/www/hotsanicに変更
WEBDIR="not configured"

WEBDIR="/var/www/hotsanic"

# the output-format of the generated images may be either "gif" or "png"
#
# IMAGEFORMATの値をgifからpngに変更
IMAGEFORMAT="gif"

IMAGEFORMAT="png"

# diagram-rebuild timebase (minutes).
# Usually 15 min. should do fine, but if you think your system
# is too busy, just increase the timebase as you like.
# Values up to about 45 make sense since the lowest-scale graph
# covers 60 minutes of data sampled.
#
# DTIMEの値を15から1に変更
DTIME="15"

DTIME="1"

# This setting controlss how the images will be converted
# to thumbnails
#
# Value Behaviour
#
# "ImgMgck" Call ImageMagick's "convert" to create thumbnails
#
# "I::M" Use the Image::Magick module
#
# "HTML" Don't convert at all, but use the HTML image resize
# tag instead. More data has to be transfered using
# this method, but you won't need additional software.
#
# CONVERTMETHODの値をHTMLからImgMgckに変更
CONVERTMETHOD="HTML"

CONVERTMETHOD="ImgMgck"

# path to the "convert" binary from ImageMagick package
# this has to be the full path to the binary !
#
# CONVERTPATH="/usr/X11R6/bin/convert"
#
# CONVERTPATHの値を空から/usr/bin/convertに変更
CONVERTPATH=""

CONVERTPATH="/usr/bin/convert"

# configure the pathes of some additional applications which may be
# needed by HotSaNIC
#

# configure the full pathes to snmpwalk and snmpget binaries here.
# These may be needed to get data from remote machines.
#
# SNMPWALKの値をnot configuredから/usr/bin/snmpwalkに変更
SNMPWALK="not configured"

SNMPWALK="/usr/bin/snmpwalk"

# SNMPGETの値をnot configuredから/usr/bin/snmpgetに変更
SNMPGET="not configured"

SNMPGET="/usr/bin/snmpget"

# SNMPBULKWALKの値をnot configuredから/usr/bin/snmpbulkwalkに変更
SNMPBULKWALK="not configured"

SNMPBULKWALK="/usr/bin/snmpbulkwalk"

ファイルを保存してviエディタを終了します

HotSaNIC エイリアスの設定とアクセス制御

HotSaNICのエイリアスの設定とローカルネットワークからのみ参照できるようアクセス制御を行います。

[root@centos HotSaNIC]# vi /etc/httpd/conf.d/hotsanic.conf
Alias /hotsanic /var/www/hotsanic
<Location /hotsanic>
DirectoryIndex frame.html
Order deny,allow
Deny from all
Allow from 192.168.0.0/24

ファイルを保存してviエディタを終了します

Apacheを再起動してエイリアスの設定とアクセス制御を反映

[root@centos HotSaNIC]# /etc/rc.d/init.d/httpd restart
httpd を停止中: [ OK ]
httpd を起動中: [ OK ]

HotSaNIC インデックスページ作成

[root@centos HotSaNIC]# ./makeindex.pl
WEBDIR (path to HotSaNIC's output directory) does not exist.
Trying to create path...
generating index-files for each plugin...
apcusv
creating directory /var/www/hotsanic/apcusv
moving index-files to webdir

apps
print() on closed filehandle FILE at ./makeindex.pl line 80 (#1)
(W closed) The filehandle you're printing on got itself closed sometime
before now. Check your control flow.

print() on closed filehandle FILE at ./makeindex.pl line 82 (#1)
print() on closed filehandle FILE at ./makeindex.pl line 86 (#1)
print() on closed filehandle FILE at ./makeindex.pl line 88 (#1)
print() on closed filehandle FILE at ./makeindex.pl line 90 (#1)
creating directory /var/www/hotsanic/apps
moving index-files to webdir

bind
creating directory /var/www/hotsanic/bind
moving index-files to webdir

diskio
creating directory /var/www/hotsanic/diskio
moving index-files to webdir

dnet
creating directory /var/www/hotsanic/dnet
moving index-files to webdir

mailq
creating directory /var/www/hotsanic/mailq
moving index-files to webdir

netstat
creating directory /var/www/hotsanic/netstat
moving index-files to webdir

networks
creating directory /var/www/hotsanic/networks
moving index-files to webdir

part
creating directory /var/www/hotsanic/part
moving index-files to webdir

ping
creating directory /var/www/hotsanic/ping
moving index-files to webdir

sensors
creating directory /var/www/hotsanic/sensors
moving index-files to webdir

shoutcast
creating directory /var/www/hotsanic/shoutcast
moving index-files to webdir

system
creating directory /var/www/hotsanic/system
moving index-files to webdir

traffic
creating directory /var/www/hotsanic/traffic
moving index-files to webdir

worms
creating directory /var/www/hotsanic/worms
moving index-files to webdir

building /var/www/hotsanic/index.html ...
table-size: 117 lines.

Modules are added in this order:
traffic
system
part
ping
dnet
sensors
apcusv
apps
bind
diskio
mailq
netstat
networks
shoutcast
worms

done.

HotSaNIC 起動設定

#rrdgraphを/etc/rc.d/init.d/にシンボリックリンクする
[root@centos HotSaNIC]# ln -s /usr/local/HotSaNIC/rrdgraph /etc/rc.d/init.d/rrdgraph

#シンボリックリンクを確認する
[root@centos HotSaNIC]# ls -l /etc/rc.d/init.d/rrdgraph
lrwxrwxrwx 1 root root 28 10月 21 14:54 /etc/rc.d/init.d/rrdgraph -> /usr/local/HotSaNIC/rrdgraph

#HotSaNIC起動スクリプト自動起動
[root@centos HotSaNIC]# chkconfig rrdgraph on

#HotSaNIC起動スクリプト自動起動設定確認
[root@centos HotSaNIC]# chkconfig --list rrdgraph
rrdgraph 0:off 1:off 2:on 3:on 4:on 5:on 6:off

#HotSaNIC起動スクリプト実行
[root@centos HotSaNIC]# /etc/rc.d/init.d/rrdgraph start
Starting rrdtimer...
reading & checking config (/usr/local/HotSaNIC/settings) ...
evaluating cmdline arguments...
entering daemon mode...

サムネイル作成

はじめての自宅サーバ構築 - Fedora/CentOS - サーバ監視(HotSaNIC + RRDTool) より

サムネイルとは、インデックスページの各情報リンクのイメージ画像を作成します。
一度も実行しないとインデックスページの画像は表示されないので注意してください。

マシンの性能によるのかもしれませんが、rrdgraphのサービス起動直後にconvert.plを実行すると一部のサムネイルしか作成されません。
数分~数十分くらいしてから実行するとよいかもしれません。

[root@centos HotSaNIC]# ./convert.pl
resizing /var/www/hotsanic/worms/cmd.exe-week.png
resizing /var/www/hotsanic/worms/default.ida-week.png
resizing /var/www/hotsanic/worms/root.exe-week.png
resizing /var/www/hotsanic/mailq/bytes-week.png
resizing /var/www/hotsanic/mailq/req-week.png
resizing /var/www/hotsanic/netstat/connections-week.png
resizing /var/www/hotsanic/apcusv/outv-week.png
resizing /var/www/hotsanic/apcusv/battv-week.png
resizing /var/www/hotsanic/apcusv/timeleft-week.png
resizing /var/www/hotsanic/apcusv/temp-week.png
resizing /var/www/hotsanic/apcusv/loadpct-week.png
resizing /var/www/hotsanic/apcusv/battpct-week.png
resizing /var/www/hotsanic/system/proc-week.png
resizing /var/www/hotsanic/system/mem-week.png
resizing /var/www/hotsanic/system/cpu1-week.png
resizing /var/www/hotsanic/system/load-week.png
resizing /var/www/hotsanic/system/swap-week.png
resizing /var/www/hotsanic/system/cpu3-week.png
resizing /var/www/hotsanic/system/users-week.png
resizing /var/www/hotsanic/system/cpu2-week.png
resizing /var/www/hotsanic/system/cpu0-week.png
resizing /var/www/hotsanic/system/cpu-week.png
resizing /var/www/hotsanic/system/uptime-week.png
resizing /var/www/hotsanic/apps/dovecot-week.png
resizing /var/www/hotsanic/apps/ps-week.png
resizing /var/www/hotsanic/apps/init-week.png
resizing /var/www/hotsanic/apps/klogd-week.png
resizing /var/www/hotsanic/apps/perl-week.png
resizing /var/www/hotsanic/apps/hald-week.png
resizing /var/www/hotsanic/apps/master-week.png
resizing /var/www/hotsanic/apps/kauditd-week.png
resizing /var/www/hotsanic/apps/hald-runner-week.png
resizing /var/www/hotsanic/apps/atd-week.png
resizing /var/www/hotsanic/apps/kjournald-week.png
resizing /var/www/hotsanic/apps/httpd-week.png
resizing /var/www/hotsanic/apps/mingetty-week.png
resizing /var/www/hotsanic/apps/mysqld-week.png
resizing /var/www/hotsanic/apps/sh-week.png
resizing /var/www/hotsanic/apps/gpm-week.png
resizing /var/www/hotsanic/apps/dovecot-auth-week.png
resizing /var/www/hotsanic/apps/yum-updatesd-week.png
resizing /var/www/hotsanic/apps/imap-login-week.png
resizing /var/www/hotsanic/apps/hd-audio0-week.png
resizing /var/www/hotsanic/apps/mysqld_safe-week.png
resizing /var/www/hotsanic/apps/clamd-week.png
resizing /var/www/hotsanic/apps/kstriped-week.png
resizing /var/www/hotsanic/apps/ata_aux-week.png
resizing /var/www/hotsanic/apps/pickup-week.png
resizing /var/www/hotsanic/apps/irqbalance-week.png
resizing /var/www/hotsanic/apps/squid-week.png
resizing /var/www/hotsanic/apps/lockd-week.png
resizing /var/www/hotsanic/apps/named-week.png
resizing /var/www/hotsanic/apps/kthread-week.png
resizing /var/www/hotsanic/apps/dbus-daemon-week.png
resizing /var/www/hotsanic/apps/nfsiod-week.png
resizing /var/www/hotsanic/apps/qmgr-week.png
resizing /var/www/hotsanic/apps/khubd-week.png
resizing /var/www/hotsanic/apps/mcstransd-week.png
resizing /var/www/hotsanic/apps/pop3-login-week.png
resizing /var/www/hotsanic/apps/syslogd-week.png
resizing /var/www/hotsanic/apps/xfs-week.png
resizing /var/www/hotsanic/apps/avahi-daemon-week.png
resizing /var/www/hotsanic/apps/hald-addon-acpi-week.png
resizing /var/www/hotsanic/apps/kswapd0-week.png
resizing /var/www/hotsanic/apps/hidd-week.png
resizing /var/www/hotsanic/apps/rpc_idmapd-week.png
resizing /var/www/hotsanic/apps/khungtaskd-week.png
resizing /var/www/hotsanic/apps/kmpath_handlerd-week.png
resizing /var/www/hotsanic/apps/kseriod-week.png
resizing /var/www/hotsanic/apps/kacpid-week.png
resizing /var/www/hotsanic/apps/krfcommd-week.png
resizing /var/www/hotsanic/apps/cupsd-week.png
resizing /var/www/hotsanic/apps/mdadm-week.png
resizing /var/www/hotsanic/apps/auditd-week.png
resizing /var/www/hotsanic/apps/md0_raid1-week.png
resizing /var/www/hotsanic/apps/portmap-week.png
resizing /var/www/hotsanic/apps/audispd-week.png
resizing /var/www/hotsanic/apps/imap-week.png
resizing /var/www/hotsanic/apps/gam_server-week.png
resizing /var/www/hotsanic/apps/unlinkd-week.png
resizing /var/www/hotsanic/apps/sshd-week.png
resizing /var/www/hotsanic/apps/restorecond-week.png
resizing /var/www/hotsanic/apps/tlsmgr-week.png
resizing /var/www/hotsanic/apps/pcscd-week.png
resizing /var/www/hotsanic/apps/udevd-week.png
resizing /var/www/hotsanic/apps/kpsmoused-week.png
resizing /var/www/hotsanic/apps/khelper-week.png
resizing /var/www/hotsanic/apps/ntpd-week.png
resizing /var/www/hotsanic/apps/hald-addon-keyb-week.png
resizing /var/www/hotsanic/apps/acpid-week.png
resizing /var/www/hotsanic/apps/crond-week.png
resizing /var/www/hotsanic/apps/pdflush-week.png
resizing /var/www/hotsanic/apps/saslauthd-week.png
resizing /var/www/hotsanic/apps/rpc_statd-week.png
resizing /var/www/hotsanic/apps/hcid-week.png
resizing /var/www/hotsanic/apps/smartd-week.png
resizing /var/www/hotsanic/apps/automount-week.png
resizing /var/www/hotsanic/apps/bash-week.png
resizing /var/www/hotsanic/apps/su-week.png
resizing /var/www/hotsanic/dnet/csc-week.png
resizing /var/www/hotsanic/dnet/rc5-week.png
resizing /var/www/hotsanic/dnet/des-week.png
resizing /var/www/hotsanic/dnet/ogr-week.png
resizing /var/www/hotsanic/traffic/lo-week.png
resizing /var/www/hotsanic/traffic/eth0-week.png
resizing /var/www/hotsanic/part/_dev_md0-week.png

ブラウザからHotSaNICで取得している情報を確認します。

あれ?
systemの情報が表示されない・・・。

少し時間をおいて再度インデックスページ作成(makeindex.pl)処理を実行したらsystemの情報が表示されました。

せっかくhddtempをインストールしたのにハードディスクの温度は測れてないや。
これはまた次回。

“CentOS5.5にHotSaNICをインストールしてサーバー監視”にコメントはありません

コメントする