• 28-07-2006, 21:00:30
    #1
    Üyeliği durduruldu
    Arkadaşlar P3 Dual Core 1024 Ram serverim var ve CPanel kullanıyorum. Forumda gezinirken Forum bir anda görüntülenemiyor uyarısı veriyor. Tekrar yeniliyosun hemen geri açılıyor. Bazen açılması bir 5-10 saniyeyi buluyor. Bu o kadar çok oluyor ki yani insanı çileden çıkarıyor. Daha önce başına böyle olay gelio de çözen var mı, bunun sebebi nedir? Bu arada sadece forum kapanmıyor, serverde bulunan tüm sitelere ait sayfalar kapanıyor kısa süreli de olsa. Sebebi ne ola ki?
  • 28-07-2006, 21:23:36
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    incelemek lazım

    bende de oluyor ama mod_evasive den şüphelendim
    düzelttim
    şu anda sorun yok
  • 29-07-2006, 02:10:56
    #3
    Üyeliği durduruldu
    Ya o kadar cins bişey ki Osman var ya deli olmamak elde değil. İkide bir sayfa yenilemek zorunda kalıyosun çok sinir bişey. Bir de SİM yüklü bende 3 dakkada bir kontrol et diye ayarlıyorum ama 3 dakkada bir restart atıyor hakkaten httpd'ye, halbuki load durumu da iyi, kapanmada da yok. Belki bu sorunları kapanma olarak kabul edip restart atıyor. Daha önce 1 dakikada bir kontrol et olarak ayarlıydı, Cpanelde Apache Statusten sürekli olarak takip ediyordum sürekli olarak

    Server uptime: benim ayarladığım SIM kontrol zamanını aşmıyor. 1 dakika ise sürekli olarak 59 saniye oluyor en fazla, yani sürekli olarak sim restart atıyor httpd'ye. Bu da demek ki aynı sorunla bağlantılı sanırım, belki de mod_evasive'nin o durumu Sim'de restart gereği uyandırıyor load olmamasına rağmen. Halbuki load seviyesini ben 8 yapmıştım restart için ama 0.50'lerde oluyor genelde. Bugün deneme için 3 dakkada bir sim kontrol yaptım bu sever de 2 dakka 59 saniyede bir restart atıyor. Yani sürekli bi sorun algılıyor ama ne.

    Peki Mod_evasive'deki sorun neymiş Osman, bunu acilen çözmem lazım benim yani resmen insanın tadı tuzu kalmıyor böyle, mutlaka halletmem lazım. Neler yaptığını bi yazar mısın çözüm için Teşekkürler bu arada cvp için
  • 29-07-2006, 13:17:47
    #4
    mod evasive konfigürasyonum

    fazla karıştırma ayarları

    Alıntı
    <IfModule mod_evasive.c>
    DOSHashTableSize 3097
    DOSPageCount 10
    DOSSiteCount 25
    DOSPageInterval 1
    DOSSiteInterval 1
    DOSBlockingPeriod 600
    DOSEmailNotify asdasdas@sdfsdfasd.com
    </IfModule>
  • 29-07-2006, 13:23:29
    #5
    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
  • 29-07-2006, 13:24:14
    #6
    Alıntı
    # The following 2 options (crit & false) 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="crit" # prioritize nonessential processes at load status warn or crit
    # 3 values for RPP: warn, crit, or false
    #
    STSRV_LM="false" # 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, crit, false, false, 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
    devamı
    sığmadı)
  • 29-07-2006, 18:22:17
    #7
    Üyeliği durduruldu
    Osman Çok saol Dostum cevapların ve yardımların için. Çok şükür Nixcon Forumda hallettik bu sorunu. --> Nixcon Networks

    usr/local/apache/domlogs/ 4.5 GB olmuş, öyle olunca ikide bir kapanma oluyormuş, bunu da yeni öğrendim. domlogs'ın içini boşalttım ve apache'yi baştan başlattım, çok şükür Allah nazardan saklasın bir kapanma falan olmuyor şu anda.

    Yalnız SIM sorunu devam ediyor : ) 5 dakikada bir kontrol etsin diye ayarladım şimdi yine 5 dakkada bir restart atıyor. Gerçi bir zararı yok sanırım. Ama yine de sorun neyse tabi düzeltmek en güzeli. Ben kendi konfigurasyonumla senin Konfigurasyonu bir karşılaştırayım saol.

    Bu arada benim Mod_evasive konfigurasyonum default ayarda :

    <IfModule mod_evasive.c>
    DOSHashTableSize 3097
    DOSPageCount 6
    DOSSiteCount 100
    DOSPageInterval 2
    DOSSiteInterval 2
    DOSBlockingPeriod 600
    </IfModule>


    Ben de senin gibi
    DOSEmailNotify mail@mail.com şeklinde eklesen sanırım daha iyi olur, bilgi almış olurum olup biten hakkında. Çok sık geliyormu mail sana Osman

    Bu arada hani bi ara 50 bağlantı yapayım demiştim ya yukardaki yerde 100'ü 50 yapmıştım olmamış. Acaba bu ayarların tek tek anlamlarını biliyomusun, sen bayağı bir değiştirmişsin de, yukardaki default hali, aşağıdaki de senin.

    <IfModule mod_evasive.c>
    DOSHashTableSize 3097
    DOSPageCount 10
    DOSSiteCount 25
    DOSPageInterval 1
    DOSSiteInterval 1
    DOSBlockingPeriod 600
    DOSEmailNotify asdasdas@sdfsdfasd.com
    </IfModule>

    Acaba hepsinin görevleri ne o satırların iyi olur öğenirsem ben de olmazsa senin gibi yapayım.
  • 29-07-2006, 21:59:18
    #8
    dos hash table size
    sanırım kontrol etme sıklığı
    page count aynı anda sayfa açma
    site count siteden aynı anda çekebileceği image javascript ssi vs
    page interval ve site interval = yukarıdaki 2 değişkenin süresi
    blocking period banı açma süresi
    email notify şu ana gelmedi bende anlamadım
  • 30-07-2006, 00:23:38
    #9
    Kimlik doğrulama veya yönetimden onay bekliyor.
    /usr/local/apache/domlogs/ buranın içindeki her şeyi silince daha sonra tekrar log'lar oluşuyor mu ? Herhangi bir sorun olur mu yani silsem