Install Smokeping on openBSD

1.intsall paket2 pendukung yang di perlukan olehh smokeping antara lain.

arc-5.21op0 create & extract files from DOS .ARC files
bash-3.2.33 GNU Bourne Again Shell
bzip2-1.0.4 block-sorting file compressor, unencumbered
c-client-2007 University of Washington’s c-client mail access routines
clamav-0.92.1 virus scanner
clamsmtp-1.8p1 SMTP virus filter
courier-authlib-0.58p3 authentication library for courier
courier-authlib-mysql-0.58p1 mysql authentication module for courier-authLib
courier-imap-4.1.1p2 imap server for maildir format mailboxes
courier-pop3-4.1.1p0 pop3 server for maildir format mailboxes
curl-7.17.1 get files from FTP, Gopher, HTTP or HTTPS servers
expect-5.43.0p0-no_tk sophisticated scripter based on Tcl/Tk
fping-2.4b2p3 quickly ping N hosts w/o flooding the network
gdbm-1.8.3p0 GNU dbm
gettext-0.16.1 GNU gettext
gmp-4.2.2 library for arbitrary precision arithmetic
jpeg-6bp3 IJG’s JPEG compression utilities
lha-1.14i.ac20050924.1 archive files using LZW compression (.lzh files)
libart-2.3.20 high-performance 2D graphics library
libiconv-1.9.2p5 character set conversion library
libidn-1.1 internationalized string handling
libltdl-1.5.22p3 GNU libtool system independent dlopen wrapper
libmcrypt-2.5.7p1 interface to access block/stream encryption algorithms
libxml-2.6.30 XML parsing library
mhash-0.9.1p1 strong hash library
mysql-client-5.0.51a multithreaded SQL database (client)
mysql-server-5.0.51a multithreaded SQL database (server)
p5-BSD-Resource-1.28 BSD process resource limit and priority functions
p5-CGI-SpeedyCGI-2.22p0 speed up perl scripts by running them persistently
p5-Config-Grammar-1.10 grammar-based, user-friendly config parser
p5-DBD-mysql-4.005 MySQL drivers for the Perl DBI
p5-DBI-1.59 unified perl interface for database access
p5-Net-Daemon-0.43 extension for portable daemons
p5-PlRPC-0.2018p0 module for writing rpc servers and clients
p5-RRD-1.2.23p0 perl interface to librrd
p5-SNMP_Session-1.07p0 provides rudimentary access to remote SNMP agents
p5-Term-ReadLine-Gnu-1.16 GNU Readline Library Wrapper Module
pcre-7.6 perl-compatible regular expression library
perlsh-1.8p1 Perl shell
php5-bz2-5.2.5 bzip2 compression extensions for php5
php5-core-5.2.5p2 server-side HTML-embedded scripting language
php5-gd-5.2.5-no_x11 image manipulation extensions for php5
php5-imap-5.2.5 imap, pop3 and nntp extensions for php5
php5-mbstring-5.2.5 multibyte characters extensions for php5
php5-mcrypt-5.2.5 mcrypt encryption/decryption extensions for php5
php5-mysql-5.2.5 mysql database access extensions for php5
png-1.2.22 library for manipulating PNG images
postfix-2.5.4-mysql fast, secure sendmail replacement
rrdtool-1.2.23 system to store and display time-series data
smokeping-2.3.0 latency logging and graphing system
t1lib-5.1.0p1 Type 1 rasterizer library for UNIX/X11
tcl-8.4.7p6 Tool Command Language
unzip-5.52 extract, list & test files in a ZIP archive
vim-7.1.244p0-no_x11 vi clone, many additional features
wget-1.10.2p1 retrieve files from the web via HTTP, HTTPS and FTP
zoo-2.10.1p1 handle the old .ZOO archive format
-bash-3.2#

2. itu semua paket yang aq install dalam server smoke ping banyak ya, karena itu saya gabung dengan mail server hix hix …
3. Untuk pakekt yang di perlukan smokeping bisa baca2 sendirii hixx

smokeping-2.3.0 latency logging and graphing system
rrdtool-1.2.23 system to store and display time-series data
perlsh-1.8p1 Perl shell
fping-2.4b2p3 quickly ping N hosts w/o flooding the network
p5-CGI-SpeedyCGI-2.22p0 speed up perl scripts by running them persistently
dan pakett web server …

4.Setelahh install pakekt tersebut selesai setting apache agar bisa baca file.cgi

ScriptAlias /cgi-bin/ “/var/www/cgi-bin/”
ScriptAlias /smokeping.cgi /var/www/htdocs/smokeping/cgi-bin/smokeping.cgi
AddHandler cgi-script .cgiScriptAlias /cgi-bin/ “/var/www/cgi-bin/”

#<Directory “/var/www/cgi-bin”>
<Directory “/var/www/htdocs/smokeping/cgi-bin/”>
#<Directory “/var/www/cgi-bin”>
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>

DirectoryIndex index.html index.htm index.php smokeping.cgi

itu semua di tambahkan httpd.conf

5. Edit smoekping config /etc/smokeping/config

kalo contohnya kaya ginii hixxx hixx
_________________________________

*** General ***

owner = xxxx.co.id
contact = rudi_h@xxxx.co.id
mailhost = 127.0.0.1
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 = /var/www/htdocs/smokeping/img
imgurl = /smokeping/img
datadir = /var/db/smokeping
piddir = /var/run/smokeping
cgiurl = http://192.x.x.132/smokeping/cgi-bin/smokeping.cgi
#cgiurl = smokeping/cgi-bin/smokeping.cgi
smokemail = /etc/smokeping/smokemail
tmail = /etc/smokeping/tmail
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no

*** Alerts ***
to = alertee@address.somewhere
from = smokealert@company.xy

+someloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times in a row

*** Database ***

step = 300
pings = 20

# consfn mrhb steps total
AVERAGE 0.5 1 1008
AVERAGE 0.5 12 4320
MIN 0.5 12 4320
MAX 0.5 12 4320
AVERAGE 0.5 144 720
MAX 0.5 144 720
MIN 0.5 144 720

*** Presentation ***

template = /etc/smokeping/basepage.html

#+ charts

#menu = Charts
#title = The most interesting destinations

#++ stddev
#sorter = StdDev(entries=>4)
#title = Top Standard Deviation
#menu = Std Deviation
#format = Standard Deviation %f

#++ max
#sorter = Max(entries=>5)
#title = Top Max Roundtrip Time
#menu = by Max
#format = Max Roundtrip Time %f seconds

#++ loss
#sorter = Loss(entries=>5)
#title = Top Packet Loss
#menu = Loss
#format = Packets Lost %f

#++ median
#sorter = Median(entries=>5)
#title = Top Median Roundtrip Time
#menu = by Median
#format = Median RTT %f seconds
+ overviewrange = 10h

+ detail

width = 600
height = 200
unison_tolerance = 2

“Last 3 Hours” 3h
“Last 30 Hours” 30h
“Last 10 Days” 10d
“Last 400 Days” 400d

#+ hierarchies
#++ owner
#title = Host Owner
#++ location
#title = Location

*** Probes ***

+ FPing

binary = /usr/local/sbin/fping

*** Targets ***

probe = FPing

menu = Top
title = Ping Koneksi Base solonet Dengan BTS Solonet
remark = Selamat datang di Smokeping. \
Disini kita bisa memonitoring koneksi BTS yang di miliki oleh Solonet.

+ Router
menu = Router Office
title = Router Office
++ Router
host = 202.xxx.xxx.xxx
menu = Router Office wex
title = Router Office (Mikrotik 202.xxx.xxx.xxx)

++ Router-Telkom
host = 222.xxx.xxx.xxx
menu = Router Utama Telkom
title = Router Utama Internet Telkom (Mikrotik 222.xxx.xxx.xxx)

+ BTS-xxx
menu = Seluruh BTS xxx
title = BTS Solonet
++ Bts-wonogiri
host = 192.xx.xx.xx
menu = BTS Wonogiri To xxx
title = BTS Wonogiri (AP MIkrotik Di wonogiri 192.xx.xx.xx)
++ Bts-Boyolali
host = 192.xx.xx.xx
menu = BTS Boyolali To xxx
title = BTS Boyolali (AP Mikrotik Di Boyolali 192.xx.xx.xx)
_________________________________________________

6. untuk openBSD ketika apache jalan chroot smokeping gak jalan, udahh saya coba semalaman gak berhasill juga ya terpaksa
memakai kagak chroot duluuu ….

7. Kalo masihh ada kesalahan