Measuring Delay With Smokeping: Campus Network Design & Operations Workshop
Measuring Delay With Smokeping: Campus Network Design & Operations Workshop
These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license
(http://creativecommons.org/licenses/by-nc/4.0/)
• Configure /etc/smokeping/config.d/*
• Change Smokeping's appearance here:
– /etc/smokeping/basepage.html
• Restart the service:
service smokeping {start|stop|restart|reload}
Smokeping Installation
• You will find Smokeping running here:
– http://srv1.campusX.ws.nsrc.org/smokeping/smokeping.cgi
Configuration
• Smokeping configuration files in Ubuntu:
/etc/smokeping/config.d/Alerts
/etc/smokeping/config.d/Database
/etc/smokeping/config.d/General
/etc/smokeping/config.d/pathnames
/etc/smokeping/config.d/Presentation
/etc/smokeping/config.d/Probes
/etc/smokeping/config.d/Slaves
/etc/smokeping/config.d/Targets
owner = NOC
contact = [email protected]
mailhost = localhost
# 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.
cgiurl = http://srv1.campusX.ws.nsrc.org/smokeping/smokeping.cgi
# specify this to get syslog logging
syslogfacility = local5
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no
@include /etc/smokeping/config.d/pathnames
Configuration: Targets
*** Targets ***
• Where we spend most of our time probe = FPing
++ DNS
menu = DNS
probe = DNS
+++ dns
menu = NSRC DNS
host = www.nsrc.org
Target Entry
Submenu depth (+ = top level, ++ = 2 nd
level, +++ = 3rd level...)
probe = FPing
menu = Top
title = Network Latency Grapher
remark = SmokePing Latency Monitoring \
Network Monitoring and Management Workshop
+ Local
menu = Local
title = Local Network
++ LocalMachine
++ NSRC
probe = FPing
menu = Top
title = Network Latency Grapher
remark = SmokePing Latency Monitor… \
Network Monitoring and Mana…
++ LocalMachine
2nd level
++ NSRC
+ Local → /var/lib/smokeping/Local
++ LocalMachine → /var/lib/smokeping/Local/LocalMachine.rrd
++ NSRC → /var/lib/smokeping/Local/NSRC.rrd
Configuration: Alerts
• Very flexible. Create your own type of alert.
• Send alerts to ticket queues (RT using rt-mailgate, for instance)
• Complex to understand. Read the Alerts section of the Smokeping docs:
– http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html
+ FPing
binary = /usr/sbin/fping
probe = FPing
...
++ LocalMachine
menu = localhost
title = This host
host = localhost
Probe: DNS Check
In /etc/smokeping/config.d/Targets:
DNS Latency
++ DNS
probe = DNS
menu = External DNS Check
title = DNS Latency
+++ GoogleA
menu = 8.8.8.8
Title = DNS Latency GoogleA
host = google-public-dns-a.google.com
More Types of Probes
• More information available here:
– http://oss.oetiker.ch/smokeping/probe/index.en.html
sendmail = /usr/sbin/sendmail
imgcache = /var/cache/smokeping/images
imgurl = ../smokeping/images
datadir = /var/lib/smokeping
piddir = /var/run/smokeping
smokemail = /etc/smokeping/smokemail
tmail = /etc/smokeping/tmail6
Configuration: Presentation
• If you wish to customize Smokeping’s look and feel you can edit the
file
– /etc/smokeping/basepage.html
*** Presentation ***
template = /etc/smokeping/basepage.html
charset = utf-8
+ 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
Configuration: Database
• Defines how RRDtool will save data in Round Robin Archives (RRAs)
• By default each step is 300 seconds (5 minutes).
• You cannot trivially change the step setting once data has been collected.
• Find details on each column in the database section of the online docs:
– http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html
#+slave2
#display_name=another
#color=00ff00
Externally monitor
your network!
Multi-Host Graphing
• Solve the issue of multiple hosts, one probe and missing differences in the Y axis (time):
– http://oss.oetiker.ch/smokeping/doc/smokeping_examples.en.html