Installation
apt-get install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2
Link in the smokeping apache config (apache2 was installed above as a req for smokeping)
#cd /etc/apache2/conf-available
#sudo ln -s ../../smokeping/apache2.conf smokeping.conf
Enable the config and mod_cgi
#sudo a2enconf smokeping
#sudo a2enmod cgid
#service apache2 reload
Configure
Edit the General Config file
#sudo vim /etc/smokeping/config.d/General
owner = Some Orgcontact = org@gattis.orgmailhost = Server-ipcgiurl = http://Server-ip/cgi-bin/smokeping.cgi# specify this to get syslog loggingsyslogfacility = local0# each probe is now run in its own process# disable this to revert to the old behaviour# concurrentprobes = no@include /etc/smokeping/config.d/pathnames
Edit the pathnames file. You must put in a value for sendmail (If you don't have it) so that smoke ping will run.
Edit the Alertssendmail = /bin/false
imgcache = /var/cache/smokeping/images
imgurl = ../smokeping/images
......
#sudo vim /etc/smokeping/config.d/Alerts
from = monitor-smokeping@your.email.com
#+someloss
#type = loss
# in percent
#pattern = >0%,*12*,>0%,*12*,>0%
#comment = loss 3 times in a row
+rttdetect
type = rtt
#in milli seconds
#pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100
pattern = <100,>100,>100,>100
comment = package loss
Edit the Targets
Add your own targets that you will measure by appending them to the bottom of the targets file. These will show up in a menu on the left of the generated web page. You add an entry starting with a + to create a top level entry, and subsequent lines with ++ that will show up as sub entries like so:
+ My Company
++ My Company's Web Server 1
++ My Company's Web Server 2
Actual config requires a few extra lines, as below;
#sudo vim /etc/smokeping/config.d/Targets
menu = My Company
title = My Company
Add your own targets that you will measure by appending them to the bottom of the targets file. These will show up in a menu on the left of the generated web page. You add an entry starting with a + to create a top level entry, and subsequent lines with ++ that will show up as sub entries like so:
+ My Company
++ My Company's Web Server 1
++ My Company's Web Server 2
#sudo vim /etc/smokeping/config.d/Targets
+ My_Company (Name no space)
menu = My Company
title = My Company
++ Web_Server_1
alerts = someloss,rttdetect
menu = Web Server 1
title = Web Server 1
host = web.server.org
Access smokeping
http://some.server.name/cgi-bin/smokeping.cgi
========================
https://heggel4.wordpress.com/2012/10/22/install-and-configure-smokeping-on-ubuntu-12-04-lts/
http://raghdip.blogspot.com/2014/04/network-monitoring-smokeping-life-i.html
https://www.m00nie.com/2012/07/how-to-configure-smokeping-alerts/