Installasi dan Konfigurasi Smokeping di FreeBSD 7

Pendahuluan
Tulisan ini dibuat karena udah beberapa kali harus install smokeping tapi selalu ada kelewat satu step. NGOX!!
Smokeping apaan tuch?? Kata deskripsinya: SmokePing is a latency logging and graphing system. It consists of a daemon process which organizes the latency measurements and a CGI which presents the graphs.
Kelebihan yang kerasa:
  1. Ga perlu adanya snmp2-an kaya cacti ato mrtg.
  2. Basednya pake ping jadi ngitungnya berdasarkan time bukan penggunaan bandwidth (orang awam bakalan lebih paham).
  3. Bisa dipake senjata ke ISP yg suka nyangkal kalo koneksi kita pernah putus.
Mari kita lanjutkan ke step selanjutnya:
Installasi
1. Install apache20
# /usr/ports/www/apache20/
# make install clean
2. Install smokepingnya
# /usr/ports/net-mgmt/smokeping
# make install clean
Jangan lupa centang fping ama echoping pada option, proses ini akan menginstall otomatis:
  • rrdtool
  • SpeedyCGI
  • fping
  • echoping
3. Asusmsi kalo di mesin sudah terinstall perl5.8
# cpan
cpan> install socket6
cpan> install Net::DNS
cpan> quit
Konfigurasi
1. Edit httpd.conf nya
# ee /usr/local/etc/apache2/httpd.conf
  • check apakah module speedycgi udah keload
LoadModule speedycgi_module   libexec/apache2/mod_speedycgi.so
kalo udah berarti dah aman.
  • aktifkan & Tambahin  .cgi pada AddHandler
AddHandler cgi-script .cgi
  • Tambahin smokeping.cgi pada DirectoryIndex
DirectoryIndex index.html index.php smokeping.cgi
2. Bikin file smokeping.conf di folder /usr/local/etc/apache2/Include
# ee /usr/local/etc/apache2/Include/smokeping.conf
isi filenya:
Alias /smokeping "/usr/local/smokeping/htdocs"

<Directory "/usr/local/smokeping/htdocs">
        Options ExecCGI
        Allow from all
</Directory>

Alias /smokeimg/ /usr/local/smokeping/htdocs/img/
Alias /cropper/ /usr/local/smokeping/htdocs/cropper/
3. Edit smoekping config.
# ee /usr/local/etc/smokeping/config
owner    = Kabayan
contact  = kabayan@indofreebsd.or.id
mailhost = localhost
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = /usr/local/smokeping/htdocs/img
imgurl   = /smokeimg
datadir  = /var/smokeping
piddir  = /var/smokeping
cgiurl   = http://server-smokeping.com/smokeping/smokeping.cgi
smokemail = /usr/local/etc/smokeping/smokemail
tmail = /usr/local/etc/smokeping/tmail

*** Alerts ***
to = kabayan@indofreebsd.or.id
from = smokeping@server-smokeping.com

+ Indofreebsd
menu = Targets

++ indofreebsd

menu = indofreebsd
title = indofreebsd
host = www.indofreebsd.or.id
4. Jalankan apache ama smokepingnya
# /usr/local/etc/rc.d/apache2 forcestart
# /usr/local/etc/rc.d/smokeping forcestart
5. Pasang di rc.conf biar autorun
# ee /etc/rc.conf

apache2_enable="YES"
smokeping_enable="YES"
6. BERES

Related

Application Support 1746388810242429788

Posting Komentar

emo-but-icon

Follow Us

Hot in week

Recent

Comments

Side Ads

Text Widget

Connect Us

item