Files
smokeping_2.9.0/debian/smokeping/usr/share/doc/smokeping/examples/config.targetvars-with-Curl
2025-11-07 11:31:06 +00:00

211 lines
5.3 KiB
Plaintext

# 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 = 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 = /usr/cache
imgurl = cache
datadir = /usr/data
piddir = /usr/var
cgiurl = http://some.url/smokeping.cgi
smokemail = /usr/etc/smokemail.dist
tmail = /usr/etc/tmail.dist
# 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 28800
AVERAGE 0.5 12 9600
MIN 0.5 12 9600
MAX 0.5 12 9600
AVERAGE 0.5 144 2400
MAX 0.5 144 2400
MIN 0.5 144 2400
*** Presentation ***
template = /usr/etc/basepage.html.dist
htmltitle = yes
graphborders = no
# If enabled, treat all filter menu queries as literal strings instead of regex
literalsearch = no
+ 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 360 Days" 360d
#+ hierarchies
#++ owner
#title = Host Owner
#++ location
#title = Location
# (The actual example starts here.)
*** Probes ***
# This example explains the difference between probe- and target-specific
# variables. We use the Curl probe for this.
#
# Every probe supports at least some probe-specific variables. The values
# of these variables are common to all the targets of the probe, and
# they can only be configured in the Probes section. In this case,
# the probe-specific variables are "binary" and "step".
#
# Target-specific variables are supported by most probes, the most notable
# exception being the FPing probe and its derivatives. Target-specific
# variables can have different values for different targets. They can be
# configured in both Probes and Targets sections. The values assigned in the
# Probes section function become default values that can be overridden
# in the Targets section.
#
# The documentation of each probe states which of its variables are
# probe-specific and which are target-specific.
#
# In this case the "urlformat" variable is a target-specific one. It is
# also quite uncommon, because it can contain a placeholder for the "host"
# variable in the Targets section. This is not a general feature, its
# usage is only limited to the "urlformat" variable and the "%host%" escape.
#
# (The reason why the FPing probe does not support target-specific variables
# is simply the fact that the fping program measures all its targets in one
# go, so they all have the same parameters. The other probes ping their targets
# one at a time.)
+ Curl
# probe-specific variables
binary = /usr/bin/curl
step = 60
# a default for this target-specific variable
urlformat = http://%host%/
*** Targets ***
# The target tree is divided into an HTTP branch and an FTP one.
# The servers "myhost1.example" and "myhost2.example" are probed
# in both. The third server, "myhost3.example", only has an HTTP
# server, and it's in a non-standard port (8080).
#
# The "urlformat" variable is specified for the whole FTP branch
# as "ftp://%host%/". For the HTTP branch, the default from the
# Probes section is used, except for myhost3, which overrides
# it to tag the port number into the URL.
#
# The myhost3 assignment could just as well have included the hostname
# verbatim (ie. urlformat = http://myhost3.example:8080/) instead of
# using the %host% placeholder, but the host variable would still have
# been required (even though it wouldn't have been used for anything).
probe = Curl
menu = Top
title = Network Latency Grapher
remark = Welcome to this SmokePing website.
+ HTTP
menu = http
title = HTTP latency
++ myhost1
menu = myhost1
title = HTTP latency for myhost1
host = myhost1.example
++ myhost2
menu = myhost2
title = HTTP latency for myhost2
host = myhost2.example
++ myhost3
menu = myhost3
title = HTTP latency for myhost3 (port 8080!)
host = myhost3.example
urlformat = http://%host%:8080/
+ FTP
menu = ftp
title = FTP latency
urlformat = ftp://%host%/
++ myhost1
menu = myhost1
title = FTP latency for myhost1
host = myhost1.example
++ myhost2
menu = myhost2
title = FTP latency for myhost2
host = myhost2.example