sim
çok sorunludur
doğru ayarlamazsan

Alıntı
# SIM 2.5-3 <sim@r-fx.org>
#
# NOTE: This file should be edited with word/line wrapping off,
# if your using pico please start it with the -w switch.
# (e.g: pico -w filename)
#
# [Main configuration]
#
# Here we configure our install path, log paths and some other
# misc values. You should not need to edit this section, for most
# systems. At most possibly your SYSLOG value and SLOGSIZE value.

INSPATH="/usr/local/sim" # the installed path of SIM
FUNCF="$INSPATH/internals/functions.sim" # sourced functions file
CNFMISC="$INSPATH/internals/conf.misc" # sourced misc configuration
SIMLOG="/usr/local/sim/sim.log" # log file path (should point to a file not directory)
SYSLOG="/var/log/messages" # path to kernel log or equivilant
SLOGSIZE="512" # max size of SIM logfile before it is cleared (value in KB)

# [Alerts configuration]
#
# Alerts sent out upon events , are controled by the below values
# Be sure to edit the EMAIL value to include your email address

EMAIL="sdfsdfsd@asdasd.com" # address/user to send alerts to
# seperate multiple addresses with ","
# e.g: EMAIL="root, mike@myisp.com, sms@att.net"
SUBJ="Status warning from $HOSTNAME" # subject of email alerts
EVLIMIT="64" # disable email alerts after N events (to avoid being spammed)
#
LFEXP="3" # expire lockfile after 3 minutes if stale
TAILSIML="15" # display N lines from the SIM log in alert email
TAILSYSL="15" # display N line from the kernel log in alert email

# [Service monitor configuration]
#
# Some global options related to service monitoring

RST="true" # enabled auto-restart of downed services
LAXCHK="true" # set laxed or strict service checks
DISRST="10" # disable autorestart after N events
# event stats are cleared daily
INIT_ARG="restart" # argument to pass to init scripts when service is down

# This section is to enable or disable our Service checks
# The values are either a true/false statment (true=enable, false=disable)
# Service checks by default are disabled

SERV_FTP="true" # FTP Service
SERV_HTTP="true" # HTTP Service
SERV_DNS="true" # DNS Service
SERV_SSH="true" # SSH Service
SERV_MYSQL="true" # MySQL Service
SERV_PGSQL="false" # PGSQL Service
SERV_EWP="false" # Ensim Service
SERV_XINET="true" # XINET Sevice
SERV_SMTP="false" # SMTP Service

# The below values are used to check against the processes list
# and make sure the given service is running

FTP_NAME="pure-ftpd" # name of the FTP service as appears in 'ps'
HTTP_NAME="httpd" # name of HTTP service as appears in 'ps'
DNS_NAME="named" # name of DNS service as appears in 'ps'
SSH_NAME="sshd" # name of SSH service as appears in 'ps'
MYSQL_NAME="mysqld" # name of MySQL service as appears in 'ps'
PGSQL_NAME="postmaster" # name of PGSQL service as appears in 'ps'
EWP_NAME="ocwhttpd" # name of Ensim service as appears in 'ps'
XINET_NAME="xinetd" # name of XINET service as appears in 'ps'
SMTP_NAME="sendmail" # name of SMTP service as appears in 'ps'

# The below values are used to check against the netstat output
# and make sure the given service is operating on the said port

FTP_PORT="21" # TCP/IP port for FTP
HTTP_PORT="80" # TCP/IP port for HTTP
DNS_PORT="53" # TCP/IP port for DNS
SSH_PORT="*****" # TCP/IP port for SSH
MYSQL_PORT="3306" # TCP/IP port for MySQL
EWP_PORT="19638" # TCP/IP port for Ensim
XINET_PORT="110" # TCP/IP port for an XINET service
SMTP_PORT="25" # TCP/IP port for SMTP service

# The init paths are what is used to restart a given service
# ("start" is passed to the given init script)

FTP_INIT="/etc/init.d/pure-ftpd" # path to FTP service init script
HTTP_INIT="/etc/init.d/httpd" # path to HTTP service init script
DNS_INIT="/etc/init.d/named" # path to DNS service init script
SSH_INIT="/etc/init.d/sshd" # path to SSH service init script
MYSQL_INIT="/etc/init.d/mysql" # path to MySQL service init script
PGSQL_INIT="/etc/init.d/postgresql" # path to PGSQL service init script
EWP_INIT="/etc/init.d/webppliance" # path to Ensim service init script
XINET_INIT="/etc/init.d/xinetd" # path to XINET service init script
SMTP_INIT="/etc/init.d/sendmail" # path to SMTP service init script

# [Service specifics]
#
# Here we edit parameters for service specific features
# such as our HTTP log monitor. For the most part this
# is just integrated features in the service .chk files.
#

SP_HTTP_URL="true" # true/false value to enable/disable url aware monitoring
SP_HTLOG="true" # true/false value to enable/disable HTTP log monitor
SP_MYSQLS="true" # true/false value to enable/disable MySQL Socket fix

# Semaphore array cleanup on HTTP restart
#
SP_SCLEAN="true" # true/false value to enable/disable semaphore array cleanups

# HTTP log size monitor
#
# Keep main apache log files incheck to avoid segfaults
# (crashing) if/when logs grow to large.

LPATH_HT="/var/log/httpd" # the location of your HTTP servers log files
LSIZE_HT="300" # the max size of the log directory (value in MB)

# URL aware monitoring
#
# This is an implamented feature in the http module
# its purpose is to determine if/when the apache
# server locks up or otherwise stops responding.

URL_PROT="http" # protocol for url ? http one would hope
URL="www.meltemhosting.net/index.htm" # url path to a local file - do not include http://

# MySQL Socket correction
#
# MySQL uses a /tmp symlink of its mysql.sock socket
# file. This feature verifies that the symlink exists
# from the main mysql.sock file, and if not it is
# recreated.

MYSQL_SOCK="/var/lib/mysql/mysql.sock" # main mysq.sock file
MYSQL_TMPSOCK="/tmp/mysql.sock" # /tmp or equivalant symlink of the socket

# [System monitor configuration]
#
# This section is to enable or disable our System chk modules
# The values are either a true/false statment (true=enable, false=disable)
# System chk modules are disabled by default

SYS_LM="true" # true/false value to enable/disable the load monitor
SYS_NET="true" # true/false value to enable/disable network monitor

# Here we edit the parameters for our system load module
#
# This module will in due time be completely redone but for now
# it serves the purpose and works reasonable well....

WARN_LD="15" # max load value before status warning (5 minute load avg.)
CRIT_LD="30" # max load value before status critical (5 minute load avg.)
GMSG="false" # send message to all users asking that they logoff for a short period