Pendahuluan Tulisan ini dibuat karena udah beberapa kali harus install smokeping tapi selalu ada kelewat satu step. NGOX!! Smokeping apaan t...
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
# make install clean
2. Install smokepingnya
# /usr/ports/net-mgmt/smokeping
# make install clean
# 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
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/
<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
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
# /usr/local/etc/rc.d/smokeping forcestart
5. Pasang di rc.conf biar autorun
# ee /etc/rc.conf
apache2_enable="YES"
smokeping_enable="YES"
apache2_enable="YES"
smokeping_enable="YES"
6. BERES
COMMENTS