Tim's blah blah blah

Installing smokeping on Debian with nginx

This is my documentation on installing smokeping on Debian/Nginx. Based on Arch linux wiki (archlinux.org) and sleeplessbeastie’s blog (sleeplessbeastie.eu) and nginx docs on FCGI Wrap (nginx.com)

I had some issue with uwsgi so I went for fastcgi instead. Some other things to watch out for:

  1. /var/lib/smokeping should be owned by smokeping. Watch out it’s not owned by root when accidentally running smokeping in debug.
  2. ERROR: /etc/smokeping/config.d/pathnames, line 6: Directory '/run/smokeping' does not exist: run sudo systemctl restart smokeping.service to recreate PID dir.

Probes & targets

/etc/smokeping/config.d/Probes:

*** Probes ***

+ FPing
binary = /usr/bin/fping

+DNS
binary = /usr/bin/dig

+Curl
binary = /usr/bin/curl

+AnotherCurl
binary = /usr/bin/curl
forks = 2
offset = 50%
follow_redirects = yes
include_redirects = yes
insecure_ssl = 1
urlformat = https://%host%/ # mandatory

/etc/smokeping/config.d/Targets

*** Targets ***

probe = FPing

menu = Top
title = Network Latency Grapher
remark = Welcome to Tim's SmokePing website. \

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

++ MultiPing
menu = MultiPing
title = 2xAmsterdam + London + Moscow
host = /network/Amsterdam1 /network/Amsterdam2 /network/London /network/Moscow
++ Amsterdam1
host = ams-ix.net
++ Amsterdam2
host = test.ams1.servers.com
++ London
host = linx.net
++ Moscow
host = dataix.ru
++ Washington1
host = test.was1.servers.com
++ Washington2
host = test.was2.servers.com


+ dns
menu  = DNS check
title = DNS check
probe = DNS
# Need a low-TTL domain here to prevent caching. Also we need a host we don't regularly use ourselves, or the local dns resolver will cache the result. I choose cnn.com

++ MultiDNS
menu = MultiDNS
title = Local + KPN + Google + Cloudflare
host = /dns/local /dns/kpn /dns/google /dns/cloudflare

++ local
menu   = Local
title  = DNS check using local DNS
host   = cnn.com
pings  = 5
server = 172.17.10.1

++ kpn
menu   = KPN
title  = DNS check using KPN ISP DNS
host   = cnn.com
pings  = 5
server = 195.121.1.34

++ google
menu  = Google
title = DNS check using Google Public DNS
host   = cnn.com
pings  = 5
server = 8.8.8.8

++ cloudflare
menu  = Cloudflare
title = DNS check using Cloudflare Public DNS
host   = cnn.com
pings  = 5
server = 1.1.1.1

++ dns0
menu  = dns0
title = DNS check using dns0 Public DNS
host   = cnn.com
pings  = 5
server = 193.110.81.0

+ http
menu  = HTTP check
title = HTTP check
probe = AnotherCurl

++ MultiHTTP
menu = MultiHTTP
title = QQ + Live + Yandex + Dailymail
host = /http/qq /http/live /http/yandex /http/dailymail

++ qq
host = qq.com

++ live
host = live.com

++ yandex
host = yandex.ru

++ dailymail
host = dailymail.co.uk

#Debian #Linux #Networking #Nginx #Server