Transcript SmokePing
SmokePing
Overview
• Network monitoring
• IP address, hostname
• Network services e.g. DNS, SMTP, HTTP
• Latency measurement
• Round trip delay time
• Historical data graphing
• Email Alerts
How It Works
• Several test packets are sent to a target and the
time taken for them to return is measured.
(Default is 20 pings every 5 minutes)
• The measurements are stored in RRD (Round
Robin Database) files.
• The round trip times are sorted and the median is
selected.
How It Works
• The measurements are graphed, where the median
is represented by a coloured line. This is also
coloured according to packet loss. The rest of the
measurements are drawn in successively lighter
shades of grey (the smoke).
Debian Package Versions
•
•
•
•
•
•
•
smokeping 2.6.8
nginx
1.2.1
rrdtool
1.4.7
fcgiwrap 1.0.3
fping
3.2
echoping 6.0.2
perl
5.14.2
Installation on Debian 7
Required packages
# aptitude –R install smokeping nginxfull fcgiwrap echoping rrdtool
(-R, --without-recommends – so apache isn’t installed)
The packages pulled in are sufficient for a minimal setup.
Configure nginx
/etc/nginx/sites-available/default
server {
...
location /cgi-bin/ {
gzip off;
root /usr/lib;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib$fastcgi_script_name;
}
location /smokeping/images/ {
root /var/cache;
}
...
}
Configure smokeping
/etc/smokeping/config.d/General
owner = James Pinkster
contact = [email protected]
mailhost = mail.example.net.au
/etc/smokeping/config.d/pathnames
imgurl = /smokeping/images
/etc/smokeping/config.d/Targets
...
remark = Your welcome message here
...
+ LocalNet
menu = LocalNet
title = Network name
++ Hostname1
host = server1.example.com
++ Hostname2
host = server2.example.com
Tips
Target firewall must allow ICMP ping request/response
To move an .rrd file to another location.
Use rrdtool dump to export
and rrdtool restore to import
Links
• Smokeping homepage
http://smokeping.org
• Useful links
http://wiki.nginx.org/Fcgiwrap
https://github.com/oetiker/SmokePing/issues/11
https://nginx.localdomain.pl/wiki/FcgiWrap
https://wiki.debian.org/nginx/FastCGI
• RRDtool
http://oss.oetiker.ch/rrdtool
Demo