Oct 06 2010
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:
- Ga perlu adanya snmp2-an kaya cacti ato mrtg.
- Basednya pake ping jadi ngitungnya berdasarkan time bukan penggunaan bandwidth (orang awam bakalan lebih paham).
- 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/configowner = Kabayan
contact =
<!–
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy74877 = ‘kabayan’ + ‘@’;
addy74877 = addy74877 + ‘indofreebsd’ + ‘.’ + ‘or’ + ‘.’ + ‘id’;
document.write( ‘<a ‘ + path + ”’ + prefix + ‘:’ + addy74877 + ”>’ );
document.write( addy74877 );
document.write( ‘</a>’ );
//–>n kabayan@indofreebsd.or.id
<!–
document.write( ‘<span style=’display: none;’>’ );
//–>
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
<!–
document.write( ‘</’ );
document.write( ‘span>’ );
//–>
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
to =
<!–
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy7040 = ‘kabayan’ + ‘@’;
addy7040 = addy7040 + ‘indofreebsd’ + ‘.’ + ‘or’ + ‘.’ + ‘id’;
document.write( ‘<a ‘ + path + ”’ + prefix + ‘:’ + addy7040 + ”>’ );
document.write( addy7040 );
document.write( ‘</a>’ );
//–>n kabayan@indofreebsd.or.id
<!–
document.write( ‘<span style=’display: none;’>’ );
//–>
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
<!–
document.write( ‘</’ );
document.write( ‘span>’ );
//–>
from =
<!–
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy284 = ‘smokeping’ + ‘@’;
addy284 = addy284 + ‘server-smokeping’ + ‘.’ + ‘com’;
document.write( ‘<a ‘ + path + ”’ + prefix + ‘:’ + addy284 + ”>’ );
document.write( addy284 );
document.write( ‘</a>’ );
//–>n smokeping@server-smokeping.com
<!–
document.write( ‘<span style=’display: none;’>’ );
//–>
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
<!–
document.write( ‘</’ );
document.write( ‘span>’ );
//–>
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
Disadur dari Indo Freebsd Thanks Bro
Comments Off on Installasi dan Konfigurasi Smokeping di FreeBSD 7