SIM ( System Integrity Monitor ) Nedir ? Nasıl Kurulur ?

SIM serverinizin yük durumunu hata veren servisleri serverinizin durum bilgisini mail adresinize gönderip aynı zamanda serverda log olarak tutan bir yazılımdır.

SIM’in Genel Özellikleri
1-) HTTP, FTP, DNS, SSH, MYSQL,PSQL ve bir çok servisin 7/24 gözlemlenmesi loglarının incelenmesi.
2-) Kapanan servisleri otomatik olarak yeniden başlatması.
3-) HTTP log boyutu kontrol sistemi,Apache nin 2 gb ın üstündeki loglarda sisteme aşırı yük getirmesini engeller.
4-) Web sitenize HTTP yolu ile ulaşıp Apache’nin kilitlenip kilitlenmediğini kontrol eder.
5-) Programa vereceğiniz değerlere göre sunucunuzu yeniden başlatması veya uyarı maili göndermesi gibi Bir cok islemi bir arada yapar

SIM’in Kurulumu :

1-) SIM’i Serverimiza Çekiyoruz.

wget http://www.r-fx.org/downloads/sim-current.tar.gz

2-) Arşivden Çıkartıyoruz.

tar -xzvf sim-current.tar.gz

3-) Arşivden Çıkarttığımız Klasöre Giriyoruz

cd sim*

4-) Otomatik Kurulum Scriptini Çalıştırıyoruz.

./setup -i

Bu komutu verdikten sonra size lisanslama bilgilerini verecektir.config dosyasına gelene kadar enter’a basarak burayı geçebilirsiniz.

Kurulumda karşınıza çıkacak sorular ve vereceğiniz cevaplar.

  • Where is SIM installed ? [/usr/local/sim]: ” Sim Nereye Kurulsun ”
  • /usr/local/sim

  • Where should the sim.log file be created ? [/usr/local/sim/sim.log]: ” Sim.log Dosyası Nereye Oluşturulsun ”
  • /usr/local/sim/sim.log

  • Max size of sim.log before rotated ? (value in KB) [128]: “sim.log boyutu ”
  • 512

  • What is the location of your kernel log Found kernel log at /var/log/messages ” Kernel loglarının olduğu klasör ”
  • /var/log/messages

  • Where should alerts be emailed to ? (e.g: root, user@domain) [root]: ” Logların gideceği mail adresi ”
  • email@emailadresiniz.com

  • Disable alert emails after how many events, to avoid email flood ?(Note: events stats are cleared daily)[8]: ” Kaç Email’den sonra Email gönderilmesin ”
  • 10

  • The below are configuration options for Service modules: press return to continue ” Servisleri Configure Edeceksiniz .
  • Entera Basıp Geçin

  • Auto-restart services found to be offline ? (true=enable, false=disable) [true]: ” Çalışmayan servisler yeniden başlatılsınmı ”
  • true

  • Enforce laxed service checking ? (true=enable, false=disable) [true]:
  • true

  • Disable auto-restart after how many downed service events ?(Note: events stats are cleared daily) [10]: ” Servis kaç kez yeniden başlatıldıktan sonra yeniden başlatma kapansın ”
  • 10

  • Enable FTP service monitoring ? (true=enable, false=disable) [false]: ” FTP Servisi Kontrol Edilsinmi ”
  • true

  • Enable HTTP service monitoring ? (true=enable, false=disable) [false]: ” HTTP Servisi Kontrol Edilsinmi ”
  • true

  • Enable DNS service monitoring ? (true=enable, false=disable) [false]: ” DNS Servisi Kontrol Edilsinmi ”
  • true

  • Enable SSH service monitoring ? (true=enable, false=disable) [false]: ” SSH Servisi Kontrol Edilsinmi ”
  • true

  • Enable MYSQL service monitoring ? (true=enable, false=disable) [false]: ” MYSQL Servisi Kontrol Edilsinmi ”
  • true

  • Enable SMTP service monitoring ? (true=enable, false=disable) [false]: ” SMTP Servisi Kontrol Edilsinmi ”
  • true

  • Enable XINET service monitoring ? (true=enable, false=disable) [false]: ” XINET Servisi Kontrol Edilsinmi ”
  • true

  • Enable ENSIM service monitoring ? (true=enable, false=disable) ” ENSIM Servisi Kontrol Edilsinmi ”
  • true

  • Enable PGSQL service monitoring ? (true=enable, false=disable) ” PGSQL Servisi Kontrol Edilsinmi ”
  • true

  • After an unclean HTTP shutdown, semaphore array’s may remain allocated
    and cause the service to fall into a looping restart cycle. Using this
    feature clears semaphore arrays on HTTP restart.
    Enable semaphore cleanup ?
  • true

  • 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.
    Enable URL aware monitoring ? ” Apache Çalışır Gözükür Ama Bazen Cevap Alınamayabilir. Apache Yeniden Başlatılsınmı ”
  • true

  • URL path to a local file ? (exclude HTTP://)
    Note: This URL should be valid and reside on the local server, otherwise
    HTTP will loop restarting
    [127.0.0.1/index.html]: ” Serverinizda Barinan Bir Link Verin ( Silinmemesi Gerekiyor ) ”
  • www.domain.com/index.php

  • HTTP log files can grow large and cause the service to crash
    (segfault), this feature will keep the main HTTP logs incheck.
    Enable HTTP log monitor ? ” HTTP Logları Kontrol Edilsinmi ”
  • true

  • 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.
    Enable MySQL Socket correction ? ” Mysql Socket Correction Akfitleştirilsinmi ”
  • true

  • Enable NETWORK monitoring ? (true=enable, false=disable) ” Network Kontrol Edilsinmi ”
  • true

  • interface to monitor ? ” Ethernet Kartınız ”
  • eth0

  • Enable LOAD monitor ? (true=enable, false=disable) ” Yük Durumu Kontrol Edilsinmi ? ”
  • true

  • Load level before status condition ‘warning’ ? ” Server Yükü Kaçı Geçtiğinde Uyaruı Mesajı Verilsin ”
  • 6

  • Load level before status condition ‘critical’ ? ” Server Yükünün Kritik Seviyesi ”
  • 12

  • Enable a global (wall) message at status condition ‘warning’ & ‘critical’ ? ” Root’taki Kullanıcılara Yük Kritikleşince Uyarıu Mesajı Verilsinmi ”
  • true

  • Renice services at status condition ‘warning’ or ‘critical’ ?
    (3 values - warn, crit, false - false=disabled)
  • crift

  • Stop nonessential services at status condition ‘warning’ or ‘critical’ ?
    (3 values - warn, crit, false - false=disabled)
  • false

  • Reboot system on status condition ‘warning’ or ‘critical’ ?
    (3 values - warn, crit, false - false=disabled)
  • false

    Kurulum işlemi tamamlandı şimdi SIM’i crona ekleyerek 5 dakikada bir çalışmasını ayarlayalım

    Kod:

    ./setup -c

    Removed SIM cronjob. bu yazıyı aldıktan sonra tekrar bu komutu veriyoruz

    Kod:

    ./setup -c

    Installed SIM cronjob. mesajı geldiyse işlem tamamlandı.Kolay Gelsin

    Favorilerinize Ekleyin.
    • BlinkList
    • del.icio.us
    • Digg
    • Netvouz
    • DZone
    • ThisNext
    • MisterWong
    • Wists
    • blogmarks
    • Furl
    • Netscape
    • NewsVine
    • Reddit
    • Shadows
    • Technorati
    • YahooMyWeb
    • Fark
    • feedmelinks
    • Fleck
    • kick.ie
    • LinkaGoGo
    • Linkter
    • MyShare
    • Spurl
    • Webride