Fórum cPanel: Ajuda com o SIM - Fórum cPanel

Ir para


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ajuda com o SIM

#1 Membro offline   Rogério 

  • Ele mora no fórum!
  • PipPipPipPipPipPipPip
  • Grupo: Membros
  • Posts: 714
  • Cadastrado: 14-dezembro 06

Posted 30 julho 2007 - 04:24

Olá, estou instalando o SIM, http://www.r-fx.org/sim.php, mas no log aparece todos ok mas o mysql off, mas ele esta on

meu arquivo de conf está assim

CODE
# 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="128"                                        # 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="EMAIL"                                     # 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="8"                                         # 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="false"                                        # SSH Service
SERV_MYSQL="true"                                      # MySQL Service
SERV_PGSQL="false"                                      # PGSQL Service
SERV_EWP="false"                                        # Ensim Service
SERV_XINET="false"                                      # XINET Sevice
SERV_SMTP="true"                                   # 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="mysql"                                     # 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="exim"                                # 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="22"                                           # 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/exim"                    # 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="false"                                     # true/false value to enable/disable url aware monitoring
SP_HTLOG="false"                                     # true/false value to enable/disable HTTP log monitor
SP_MYSQLS="false"                                       # true/false value to enable/disable MySQL Socket fix

# Semaphore array cleanup on HTTP restart
#
SP_SCLEAN="false"                                       # 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="127.0.0.1/index.html"                              # 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="false"      # 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="5"                                            # max load value before status warning (5 minute load avg.)
CRIT_LD="5"                                            # 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

# The following 2 options (warn & crit) are still
# considered to be somewhat experimental. They work
# inhouse for me but not much testing has been done
# with these features. Use at your own risk :P
# Note: use common sence and read the comments --
# e.g: setting STSRV_LM to run at load critical
# and having RST_LM reboot the server !?
#

RPP="warn"      # prioritize nonessential processes at load status warn or crit
                                                       # 3 values for RPP: warn, crit, or false
      #
STSRV_LM="crit"     # stop nonessential services at load status warn or crit
      # 3 values for STSRV_LM: warn, crit, or false

RST_LM="false"                                          # reboot server at load status warn or crit
      # 3 values for RST_LM: warn, crit, or false
      #
DISCMD_WARN="3"      # disable command execution (. /usr/local/sim/internals/chk/sys/lm/warn.lm) after N runs
DISCMD_CRIT="3"      # disable command execution (. /usr/local/sim/internals/chk/sys/lm/crit.lm) after N runs
      #
      # Features false, warn, false, crit, 3, and
      # 3 are dependent on the preset command configurations
      # below, altering them will omit the above features.
      #
WARN_CMD=". $INSPATH/internals/chk/sys/lm/warn.lm"      # command to execute at load status warning
CRIT_CMD=". $INSPATH/internals/chk/sys/lm/crit.lm"      # command to execute at load status critical

# Here we edit the parameters for our network monitor
#
# The network status is a fundamental aspect of keeping a server
# online, as such the network module makes an effort in doing so.
#
IF="eth0"      # interface name to watch
NET_INIT="/etc/init.d/network"    # network service init script

0

#2 Membro offline   Yuri 

  • Esse é irmão!!
  • PipPipPipPipPipPip
  • Grupo: Membros
  • Posts: 484
  • Cadastrado: 01-maio 06
  • Location:Ribeirão Pires - SP

Posted 30 julho 2007 - 04:40

A porta do mysql esta aberta no firewall? Pois não é necessário estar para o mysql funcionar apenas para acesso remoto, não sei como o SIM faz a verificação mais talvez seja isso.
0

#3 Membro offline   Rogério 

  • Ele mora no fórum!
  • PipPipPipPipPipPipPip
  • Grupo: Membros
  • Posts: 714
  • Cadastrado: 14-dezembro 06

Posted 30 julho 2007 - 04:48

está sim, já desliguei o firewall (APF) e nada
0

#4 Membro offline   ergti 

  • Ele mora no fórum!
  • PipPipPipPipPipPipPip
  • Grupo: Membros
  • Posts: 682
  • Cadastrado: 06-agosto 06
  • Gender:Male
  • Location:Belo Horizonte

Posted 30 julho 2007 - 05:38

Senão por um detalhe na configuração, tente seguir este tuto aqui que é válido.

http://www.forumcpanel.com.br/index.php?showtopic=349&hl=


0

#5 Membro offline   Rogério 

  • Ele mora no fórum!
  • PipPipPipPipPipPipPip
  • Grupo: Membros
  • Posts: 714
  • Cadastrado: 14-dezembro 06

Posted 30 julho 2007 - 07:59

QUOTE(ergti @ Jul 30 2007, 05:38 PM)
Senão por um detalhe na configuração, tente seguir este tuto aqui que é válido.

http://www.forumcpanel.com.br/index.php?showtopic=349&hl=
Ver post

eu segui exatamente esse topico mas nao postei nele devido a ser antigo
0

#6 Membro offline   Rogério 

  • Ele mora no fórum!
  • PipPipPipPipPipPipPip
  • Grupo: Membros
  • Posts: 714
  • Cadastrado: 14-dezembro 06

Posted 01 agosto 2007 - 01:46

alguem pode me ajudar com isso, tá dificil isso

pelo que pude testar a porta do sql 3306 nao está aberto, ou se voce testar conexao via http nao vai

já desabilitei o firewall e nada
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 membro(s), 1 visitante(s), 0 membro(s) anônimo(s)