Jump to content

Install Smokeping


Recommended Posts

Installing Smokeping is relatively simple. Just issue this command as root.

sudo yum -y install smokeping

and It will install smokeping along with all other tools and dependencies it requires.


NOTE:  selinux is the Problem. By default its enabled in Fedora installation. Disable it by editing

sudo nano /etc/selinux/config

and change the enable to disable as following.


(Restart your nix box.)

After installation completes, You can access it via


NOTE: If you get Access Denied: You dont have permission to access this Folder error, edit the following line.

nano /etc/httpd/conf.d/smokeping.conf

and remove all lines in this file , and paste the following.    

order deny,allow

allow from

allow from all


order deny,allow

allow from

allow from all


ScriptAlias /smokeping/sm.cgi  /usr/share/smokeping/cgi/smokeping.cgi

ScriptAlias /smokeping/tr.cgi  /usr/share/smokeping/cgi/tr.cgi

Alias       /smokeping/images  /var/lib/smokeping/images

Alias       /smokeping         /usr/share/smokeping/htdocs

Save & exit. Now restart apache web server by

service httpd restart

Now try to access the smokeping cgi, it will open properly.


Now Its time to add your target in Smokeping for monitoring. The default location for the Smokeping config file is /etc/smokeping/config, Now just for example, we will edit this file.

nano /etc/smokeping/config

Remove all the lines in it and paste the following lines


*** General ***

owner    = Syed Jahanzaib

contact  = aacable@hotmail.com

mailhost = smtp.ptcl.com

sendmail = /usr/sbin/sendmail

imgcache = /var/lib/smokeping/images

imgurl   = /smokeping/images

datadir  = /var/lib/smokeping/rrd

piddir   = /var/run/smokeping

cgiurl   = http://localhost/smokeping/smokeping.cgi

smokemail = /etc/smokeping/smokemail

tmail     = /etc/smokeping/tmail

syslogfacility = local0

*** Alerts ***

to = root@localhost

from = root@localhost


type = loss

pattern = >0%,*12*,>0%,*12*,>0%

comment = loss 3 times  in a row

*** Database ***

step     = 300

pings    = 20

# consfn mrhb steps total

AVERAGE  0.5   1  1008

AVERAGE  0.5  12  4320

MIN  0.5  12  4320

MAX  0.5  12  4320

AVERAGE  0.5 144   720

MAX  0.5 144   720

MIN  0.5 144   720

*** Presentation ***


template = /etc/smokeping/basepage.html


+ 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


++ loss

sorter = Loss(entries=>5)

title = Top Packet Loss

menu = Loss

format = Packets Lost %f


++ median

sorter = Median(entries=>5)

title = Top Median Roundtrip Time

menu = by Median

format = Median RTT %f seconds


+ overview


width = 600

height = 50

range = 10h


+ detail


width = 600

height = 200

unison_tolerance = 2


"Last 3 Hours"    3h

"Last 30 Hours"   30h

"Last 10 Days"    10d

"Last 400 Days"   400d


*** Probes ***

+ FPing


binary = /usr/sbin/fping


*** Slaves ***










*** Targets ***

probe = FPing


menu = Top

title = Network Latency Grapher

remark = Welcome to the SmokePing website of GLASSLINE (Pvt) Ltd.

Here you will learn all about the latency of our network.

This page is maintained by Glassline. (Pvt) ltd .

Support Email: aacable@hotmail.com

Web: https://aacable.wordpress.com




+ Ping


menu = WAN Connectivity

title = WAS Side Network


++ yahoo


menu = yahoo

title = yahoo ping report

host = yahoo.com


++ google


menu = google

title = Google ping report

host = google.com



+ Ping2


menu = LAN Connectivity

title = LAN Side Network


++ Mikrotik


menu = Mikrotik

title = Mikrotik PPP ping report

host =


++ Proxy


menu = Proxy

title = Proxy Server ping report

host =


++ Billing


menu = Billing

title = Radius billing Server ping report

host =

Now restart smokeping process by    

/etc/init.d/smokeping restart

Default update time for all ping probes are 5 Minutes. Try accessing the main smokeping page after 5-10 minutes so it can create necessary RRD for targets and update its graphs.


Click on LAN connectivity to open graphs.

Click on WAN Connectivity

Click on  the Yahoo Ping Graph showing on Right to get more detailed graph report.

To get more detailed view, click on Last 3 hours graphs, It will open this graph in NAVIGATOR mode. Now here you can select any specific area to zoom to troubleshoot at exact which time the latency problems occurs. For example in the following screenshot you can see the blue dots which shows that ping timeout occurs at specific time.


A client complained that the internet worked very slow in the morning at 10:30am. So you can pull data from smokeping graph to validate the complain or to troubleshoot what exactly happened at 10:30am

As you can see the blue dots showed that the ping breaks occured in the specific timings.

There are so many interesting things you can do with SMOKE-PING.

For some more examples , please visit the author web site @    


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...