# This Smokeping example configuration file was automatically generated.
#
# Everything up to the Probes section is derived from a common template file.
# See the Probes and Targets sections for the actual example.
#
# This example is included in the smokeping_examples document.

*** General ***

owner    = Your Name Here
contact  = your@email.address
mailhost = localhost
sendmail = /usr/sbin/sendmail
imgcache = /usr/local/smokeping/htdocs/img
imgurl   = img
datadir  = /usr/local/var/smokeping
piddir  = /usr/local/var/smokeping
cgiurl   = http://some.url/smokeping.cgi
smokemail = /usr/local/etc/smokeping/smokemail
tmail = /usr/local/etc/smokeping/tmail
# specify this to get syslog logging
syslogfacility = local0


*** Alerts ***
to = your@email.address
from = smokeping@master.grpX.ws.nsrc.org

+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 = /usr/local/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

+ 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

# (The actual example starts here.)

*** Probes ***

# Here we have three probes: FPing for the regular ICMP pings,
# DNS for name server latency measurement and EchoPingHttp
# for web servers.
# 
# The FPing probe runs with the default parameters, except that the ICMP
# packet size is 1000 bytes instead of the default 56 bytes.
# 
# The DNS and EchoPingHttp probes have been configured to be a bit more
# gentle with the servers, as they only do 5 queries (pings) instead of the
# default 20 (or whatever is specified in the Database section). However,
# DNS queries are made more often: 5 queries every 3 minutes instead of
# every 5 minutes.

+ FPing
binary = /usr/local/sbin/fping
packetsize = 1000

+ DNS
binary = /usr/bin/dig
lookup = noc.ws.nsrc.org
pings = 5
step = 180

+ EchoPingHttp
pings = 5
url = /test-url

*** Targets ***

# The target tree has been divided by the probe used. This does not have
# to be the case: every target (sub)section can use a different probe,
# and the same probe can be used in different parts of the config tree.

probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to this SmokePing website.

+ network
menu = Net latency
title = Network latency (ICMP pings)

++ master 
host = 10.10.xx.1 
++ auth 
host = 10.10.xx.2
++ cache 
host = 10.10.xx.3 

+ services
menu = Service latency
title = Service latency (DNS)

++ DNS
probe = DNS
menu = DNS latency
title = Service latency (DNS)

+++ master 
host = 10.10.xx.1 

+++ auth
host = 10.10.xx.2

+++ cache
host = 10.10.xx.3 
