# In this file all global settings for
HotSaNIC are defined.
#
# Currently supported
operating systems are:
#
# Linux
# fully
featured for any Linux system, based on Kernel 2.4.x
# 2.2.x based
systems may encounter some incompatibilities
#
# OpenBSD
# FreeBSD
# NetBSD
# at the
moment a lot of work has to be done to get the system
# completely
running under BSD based systems. Currently supported
# are the
following modules:
#
#
|FreeBSD
|OpenBSD |NetBSD
#
----------+---------------+---------------+-----------
#
apcusv |untested
|untested |untested
#
apps |yes
|should work |yes
#
diskio |no
|no |yes
#
dnet |yes
|should work |should work
#
networks |no
|no |no
#
part |yes
|yes |yes
#
ping |yes
|untested |yes
#
sensors |yes(1)
|no |yes(1)
#
shoutcast |should work |should work
|should work
#
system |yes
|untested |yes
#
traffic |yes |should
work |yes
#
worms |should work |should
work |should work
#
# (1) using the xmbmon
utility ver 2.0 or later
#
http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/
#
(can be compiled without X support!!!)
#
#
# solaris
# same (if
not more) amount of work has to be done on Solaris. The
# current
state for this %&%@"$&&%$ OS looks as follows:
#
#
apcusv yes
#
apps yes
#
diskio no
#
dnet yes
#
networks no
#
part yes
#
ping yes
#
sensors no
#
shoutcast yes
#
system yes
#
traffic no
#
worms yes
#####################################################################
#
#
# Then let's configure
some
pathes...
#
#
#
#####################################################################
# path to the HotSaNIC
main-directory
# this has to be a
directory !
#
#
DAEMONDIR="/home/daemon/HotSaNIC"
#
DAEMONDIR="/usr/local/HotSaNIC"
<--- HotSaNIC ホームディレクトリのパス
# path to the "rrdtool"
binary
# this has to be a
directory !
#
#
BINPATH="/usr/local/rrdtool-1.0.33/bin"
#
BINPATH="/usr/local/rrdtool/bin"
<--- RRDTool のパス
# set LOGDIR to the
directory where logfiles shall be created
#
LOGDIR="$DAEMONDIR/var/log/"
#
VARDIR="$DAEMONDIR/var/"
# set LOGDIR to the
directory where logfiles shall be created
#
LOGDIR="$DAEMONDIR/var/log/"
#
LOGDIR="$DAEMONDIR/var/log/"
# path to the pid-file
for the daemon
#
PIDFILE="$DAEMONDIR/log/rrdtimer.pid"
#
PIDFILE="$DAEMONDIR/var/run/rrdtimer.pid"
# web-directory for all
graphs
# this directory must be
writeable for the rrdgraph tool
# because each plugin
will create its own subdir here.
#
WEBDIR="/var/www/hotsanic"
<--- HotSaNIC のWebディレクトリ
#####################################################################
#
#
# Here are some global
parameters
#
#
#
#####################################################################
# if DIAGRGAMLOG is set
to "all" then all diagrams will be logged.
# anything else will log
only the last run of diagram script.
# when logfiles reach
LOGSIZE they will get rotated.
# LOGBACKUPS old logfiles
will be kept as backups
#
DIAGRAMLOG="last"
LOGSIZE="200000"
LOGBACKUPS="5"
# debug level
# 0=off
#
16777215=full
# bits
0-9 => main debugging
# bits 10-17
=> module debugging
# bits 18-23
=> SNMP debugging
#
# Human readable levels
are also available. Any (comma separated)
# combination of allowed
strings and integers will be accepted.
# Prepending a "-" to a
definition means to subtract this one.
# Please consult
lib/HotSaNIClog.pm for further details on allowed
# human readable level
definitions.
#
# examples:
#
DEBUGLEVEL="1023"
#
DEBUGLEVEL="1,4,16"
#
DEBUGLEVEL="MODULE,27"
#
DEBUGLEVEL="MAIN,SNMP"
#
DEBUGLEVEL="FULL"
#
DEBUGLEVEL="FULL,-MAIN_CONFIG"
DEBUGLEVEL="0"
# TIMESTAMPING defines
the "verbosity" of log timestamps
#
# 0 -> no
timestamps at all
# 1 -> seconds
since 1970
# 2 -> Wday
year-mon-mday hour:min:sec
TIMESTAMPING="2"
# module-scan timebase
(seconds)
# After this time the
daemon re-scans for available modules.
#
STIME="120"
# scheduling timings in
milliseconds
# this configures the
time between the sampling signals given to the
# module daemons
#
SCHEDULE_MIN="100"
SCHEDULE_MAX="200"
# modules listed here
(space separated) will be executed
# to use all availabe
mods you may enter
# RUN="*"
#
RUN="apps diskio netstat
networks ntp part ping sensors system traffic worms"
#####################################################################
#
#
# These settings affect
the diagram
generation
#
#
#
#####################################################################
# shall the HTML index
files be automatically generated on startup?
#
AUTOINDEX="no"
# body tag color and
background image information
#
WEB_BACKGROUND="bg.gif"
WEB_MENUBACKGROUND="menubg.gif"
WEB_BGCOLOR="E0E0E0"
WEB_TEXT="000000"
WEB_LINK="000080"
WEB_VLINK="800080"
WEB_ALINK="008000"
# Sizes of all
output-graphics in pixels
#
WIDTH="600"
HEIGHT="200"
# the output-format of
the generated images may be either "gif" or "png"
#
IMAGEFORMAT="gif"
# modules listed here
(space separated) will be shown on webpage
# to use all availabe
mods you may enter
# SHOW="*"
#
SHOW="apps diskio netstat
networks ntp part ping sensors system traffic worms"
# in which order shall
the modules appear on the webpage
# unlisted mods will be
added in alphabetical order
#
ORDER="traffic system
part ping dnet sensors"
# 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"
# diagram-convert
timebase (hours)
# After this time the
weekly diagrams are being converted to
# the smaller pictures on
the main page.
#
CTIME="24"
# 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
#
#
"netpbm" use netpbm binaries to resize images
#
NOTE: output filter supports .png only!
#
Files will be named ".gif" but contain .png!
#
Uses: giftopnm, pngtopnm, pnmscale, pnmtopng
#
#
"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="ImgMgck"
<--- サムネール作成で使用する変換メソッド
# path to either the
"convert" binary from ImageMagick package
# or to the binaries from
the "netpbm" package
#
#
CONVERTPATH="/usr/X11R6/bin"
#
CONVERTPATH="/usr/bin"
<--- 変換コマンド convert のパス
# How much shall the
thumbnails be scaled compared to the originals.
# Default is 20%.
#
THUMBSIZE="20%"
# refresh time for graphs
# The browser
automatically reloads the detailed statistics after
# this timespan.
#
# If you want to disable
the auto-refresh, just set the variable to 0
#
REFRESH="300"
#####################################################################
#
#
# Helper
applications
#
#
#
#####################################################################
# 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="/usr/bin/snmpwalk"
<--- snmpwalk のパス
SNMPGET="/usr/bin/snmpget"
<--- snmpget のパス
SNMPBULKWALK="/usr/bin/snmpbulkwalk"
<--- snmpbulkwalk のパス
|