Make install. To finish your setup. Use the etc/config.dist file as a template to create your own smokeping configuration file. See smokepingconfig for details. Installing the webinterface. Copy the content of the PREFIX/htdocs directory to the place where your webserver expects its data. Maybe to /var/www/smokeping.
Learning has never been so easy!
This is a walkthrough on how to build a cheap and effecient latency monitor . It is built on a Raspberry Pi computer that is cheap (less than $70 for the mainboard, case, power supply, and storage device.) This setup will use less power than a normal computer (I measured my Raspberry Pi model B+ running at 3 watts!) That last thing I really like about this method of monitoring is that the Raspberry Pi is a completely solid state device, and as such it should last for many years beyond what a normal computer or server can function.
**Note: This guide assumes that you have a DHCP on your network and a functional internet connection.
- Type: 'sudo apt-get update' and press ENTER - Type: 'sudo apt-get upgrade' and press ENTER
Step 5: Install smokeping and sendmail:
- Type: 'sudo apt-get install smokeping sendmail' and press ENTER
Step 6: Enable a2enmod in apache
- Type: 'sudo a2enmod cgi' and press Enter
Step 7: Create list of targets to monitor with smokeping:
- Type: 'sudo nano /etc/smokeping/config.d/Targets' and press ENTER
---a. On line 6 you can change “Network Latency Grapher” to anything you would like displayed at the top of the main webpage. ---b. On line 7 you can change the remark to anything you would like to display below the title of the main page. ---c. At the bottom of the text file you can add nested links to various addresses you would like to monitor. You can nest links by how many “+” signs you have in front of the link header. ---d. At the bottom of the file add some hosts to monitor. (omit the quotes):
“ + myservers
menu = My Servers title = My servers for my company
++ Server1
menu = Server1 title = Server1 (IP-192.168.0.2) host = 192.168.0.2 alerts = hostdown
++ Server2
menu = Server2 title = Server2 (note about server) host = 192.168.0.3
+ Routers
menu = Routers title = Routers for my company
++ Router1
menu = Router title = Main Router host = 192.168.0.1 alerts = hostdown
+ Internet
menu = Internet title = Internet Latency to Google DNS host = 8.8.8.8 “
* Save the changes you made to the file: * Press CTRL + X * Press Y * Press ENTER
Step 8: Setup alerts to email you when a host goes offline
- Type: 'sudo nano /etc/smokeping/config.d/Alerts' and press ENTER
- Change the 'to = [email protected]' to your email address or distribution group.
- Add the following at the bottom of the text (but omit the quotes): ' #This Alert checks for one period (1 * 5mins) of more than 60% loss +hostdown type = loss pattern = >60% edgetrigger = yes comment = Host is OFFLINE
+someloss type = loss # in percent pattern = >0%,*12*,>0%,*12*,>0% comment = loss 3 times in a row
# This rule checks for one period (2 * 5mins) of >60% loss +hostdown2 type = loss # in percent pattern = >60%,>60% edgetrigger = yes comment = Host is OFFLINE
# This is an alert for Lorraine +Lorraine_Alert type = loss pattern = >60%,>60%,>60% edgetrigger = yes comment = Lorraine - You turned your computer off so it wont be backed up. PLEASE REMEMBER TO LEAVE YOUR COMPUTER ON OVERNIGHT. to = [email protected]
# This alert is for Bob +BobB_Alert type = loss pattern = >60%,>60%,>60% edgetrigger = yes comment = Bob - You turned your computer off so it wont be backed up. PLEASE REMEMBER TO LEAVE YOUR COMPUTER ON OVERNIGHT. to = [email protected]
# This alert is for Dan +DanB_Alert type = loss pattern = >60%,>60%,>60% edgetrigger = yes comment = Dan - You turned your computer off and now it wont be backed up. PLEASE REMEMBER TO LEAVE YOUR COMPUTER ON OVERNIGHT. to = [email protected]
# This is an alert for JoAnn +JoAnnH_Alert type = loss pattern = >60%,>60%,>60% edgetrigger = yes comment = JoAnn - You turned your computer off and now it wont be backed up. PLEASE REMEMBER TO LEAVE YOUR COMPUTER ON OVERNIGHT. to = [email protected]
# This alert is for Mark +MarkB_Alert type = loss pattern = >60%,>60%,>60% edgetrigger = yes comment = Mark - You turned your computer off and now it wont be backed up. PLEASE REMEMBER TO LEAVE YOUR COMPUTER ON OVERNIGHT. to = [email protected] '
* Save the changes you made to the file: * Press CTRL + X * Press Y * Press ENTER
Step 9: Configure access to your SMTP (email) server
- Type: 'sudo nano /etc/smokeping/config.d/General' and press ENTER
- On Line 3 change 'Peter Random' to your name. - On line 4 change '[email protected]' to your email address. - On line 5 change 'my.mail.host' to the DNS name or IP address of your SMTP server.
* Save the changes you made to the file: * Press CTRL + X * Press Y * Press ENTER
Step 10: Reboot the RaspberryPi:
Type “sudo reboot” and press ENTER
Step 11: Check the webpage of your new latency monitor!
http://hostname/cgi-bin/smokeping.cgi (example: http://smokeping/cgi-bin/smokeping.cgi if your rPi's hostname is 'smokeping')
Note: if you see errors on the webpage then you may need to reboot the RaspberryPi and wait for 15-20 minutes for data to be generated.
Step 12: .
Step 13: Spice up this article so other admins can find it too!
Published: Oct 17, 2014 · Last Updated: Jan 18, 2018
10 Comments
Chipotle
xTROUBLEx Oct 21, 2014 at 12:34am
very interresting thanks for the share will use this on my raspberry that is laying around somewhere
Sonora
robbie strong Jan 13, 2015 at 06:14pm
I set this up, and it works very well. Thank you very much for your post!
Pimiento
timpulver Jun 16, 2016 at 07:56pm
After following instructions, I type the link into a browser and get nothing.. Can this only be accessed via the local network?
Cayenne
JakeBar Jun 16, 2016 at 08:04pm
@timpulver - yes, this is only for LAN access. If you want to access it online then you will have to know your public IP address and forward port 80 to the internal ip of the smokeping server.
Pimiento
timpulver Jun 16, 2016 at 08:10pm
Thanks for the Fast reply, unfortunately I still am not able to access it locally either.
Is there a step needed to enable the web server portion of the PI? This is a newly installed version of Raspain Jessie
Cayenne
JakeBar Jun 16, 2016 at 08:20pm
try putting the Pi's ip address in place of the hostname - http://192.168.0.51/cgi-bin/smokeping.cgi
also, i seem to remember that you have to wait for one period (default = 5 min) before everything starts running well.
Pimiento
Stephan2225 Apr 25, 2017 at 03:22pm
i follow your instractions step by step. But my Raspberry shows always an error: The requested URL /cgi-bin/smokeping.cgi was not found on this server
What to do?
Greetings ruebenmaster
Pimiento
Stephan2225 Apr 25, 2017 at 05:00pm
ok, i found out:
a2enmod cgi
is the solution....
Greetings ruebenmaster
Pimiento
timbrady2 Apr 25, 2017 at 10:08pm
I followed all of your instructions excluding steps 7 and 8. I can't seem to access the page. I keep getting the error - The requested URL [raspberr]/cgi-bin/smokeping.cgi was not found on this server. I also tried [raspberry IP]/cgi-bin/smokeping.cgi as well. Any ideas? Thanks for your help.
Pimiento
spicehead-fvbi3 Sep 4, 2019 at 06:33pm
My apologies if this isn't the right place for this. I've been trying to find a reference on how to bind smokeping/fping to a particular interface. I see where you can specify the source address but I'm using an RPi as a portable analysis tool to leave at customer sites when they're having issues - so it will usually be a DHCP address i.e. I won't know the source IP ahead of time. Do you know of a way to do this or could you point me in the right direction. Thank you.
How to install smokeping under windows 18 June 2006. This guide is deprecated and no longer supported, except for part 7,8, and 10. Apt-get install smokeping:). Windows VPS Hosting Windows based managed. We will learn how to install and configure Smokeping on Ubuntu. You can install smokeping with the following. Ping - smokeping_install. This document explains how to setup Smoke. Ping at your site. Ping does not stand alone.
I’ve recently being doing some work to set up LibreNMS to monitor our vast swath of internal switches and systems. It’s a great tool, perhaps not as all encompassing as something like Zabbix or Nagios but it’s super easy to use, really presentable and does just want you want it to.
It also supports a great range of integrations and today I thought I’d have a look at integrating SmokePing with it to enable latency graphing and give a bit more function to the basics of ping response times.
I started off using the instructions over at Gattis but I’ll paraphrase them here.
You then need to add a few switches or servers to the /etc/smokeping/config.d/Targets file so that Smokeping has something to do. Tender ep iii download torrent pc. Netgear wireless usb adapter wg111v2.
You need to edit the pathnames file so that the sendmail entry either points to your sendmail instance or to a valid file otherwise Smokeping won’t run.
Mar 10, 2016 - Jedi training badges for your party guests - a fun way for them to keep track. Until then, grab your free printable Jedi-in-Training printable. After the kids have completed the challenges, hand them a Jedi Training certificate. Star wars jedi training certificate. Jan 16, 2015 - If you plan to incorporate Jedi training into the party be sure to. This is a unique Jedi Knight Certificate that can be downloaded. Sep 20, 2010 - Jedi Certificate - Free Printable Star Wars Jedi Training Academy. Please feel free to download this document and personalize as needed.
However you now might get an Service Unavailable error in your browser. This had me scratching my head for a bit but after some Googling it turns out that Smokeping uses FastCGI to make it, well, faster. So install FastCGI.
sudoapt-getinstalllibapache2-mod-fcgid
Install Smokeping On Ubuntu
You should now have a working Smokeping installation.