Tham khảo cài đặt ở đây:
http://www.how2centos.com/installing-smokeping-on-centos-5-5/
Chú ý như sau:
+ symlink cho đúng ln -s /opt/smokeping/htdocs/smokeping.cgi /var/www/html/smokeping/smokeping.cgi
+ chạy xem config đúng chưa: /opt/smokeping/bin/smokeping –debug
+ Config chạy multi probe: echoping/curl:
cat /opt/smokeping/etc/config
*** General ***
owner = Peter Random
contact = some@address.nowhere
mailhost = my.mail.host
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/html/smokeping/img
imgurl = http://10.254.53.245/smokeping/img
datadir = /opt/smokeping/data
piddir = /opt/smokeping/var
cgiurl = http://10.254.53.245/smokeping/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail
tmail = /opt/smokeping/etc/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 = 10
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 = /opt/smokeping/etc/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
+ overview
width = 600
height = 50
range = 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 ***
+ EchoPingHttp # HTTP (80/tcp) for web servers and caches
binary = /usr/bin/echoping
pings = 5
port = 80
timeout = 1
url = /
+ Curl
binary = /usr/bin/curl
forks = 5
offset = 50%
step = 10
*** Targets ***
# default probe
probe = EchoPingHttp
menu = Top
title = Network Latency Grapher
remark = Welcome to this SmokePing website.
+ Myservers
menu = My Servers
title = My Servers
++ http
menu = http
title = fuck
host = thethao.vnexpress.net
++ sohoa
menu = sohoa
title = sohoa
host = sohoa.vnexpress.net
++ giaitri
menu = giatri
title= Get JS giaitri
host = st.f3.giaitri.vnexpress.net
url = /j/v34/jquery-ui-1.8.22.custom.js
+ services
menu = Service latency
title = Service latency (HTTP)
probe = Curl # if this should be the default probe
++ mytarget
host = st.f3.giaitri.vnexpress.net
pings = 5
timeout = 20
urlformat = http://%host%/j/v34/jquery-ui-1.8.22.custom.js
Kết quả: