Shell-script solution which combines the great smokeping-tool with github-pages: runs on a raspberry pi and pushes the results of the smokeping-measurement to a github-repository, so that the charts with the performance of your internet service provider are available for everybody.
Setup your smokeping-server.
The blog.kugelfish.com or the how-to on the spiceworks community page are a good starting point.
Find the configuration files in /etc/smokeping/config.d/
(see my my configuration in the folder smokeping.config.d
in this repository)
Start smokeping with /etc/init.d/smokeping start
Here are the steps to setup the script on your own raspberry pi:
-
create a github-project (or clone this project)
-
create a public-private key without password-protection*
-
put the public key to your github settings (rtfm)
-
clone your github repository on your raspberry pi
-
adapt the git.upload.sh script with your local paths
-
set the execution-bit for the user running the script (
chmod u+x git.upload.sh
) -
create a crontab entry with
crontab -e
05 */2 * * * /home/pi/smokeping/bin/git.upload.sh >> /home/pi/smokeping/logs/git.upload.log 2>&1
(updates the graphics every 2nd hour)
- You can test your script be manually calling the github.upload.sh
- If you want to use the configuration files from this repository, change the paths in the
/etc/smokeping/config
.
- Unitymedia - Frankfurt Ostend
- Telekom - Frankfurt Nordend
*): I don't know how to include a ssh-agent into the crontab-script, so that a password is not required when accessing the private key.