smokeping

Installation 

On Ubuntu Server 14.04:

# Install smokeping (Sendmail used to be required because of a smokeping bug but there's a # work around below)
sudo apt-get install smokeping

# 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 Org
contact  = org@gattis.org
mailhost = localhost

cgiurl   = http://some.server.you.just.deployed.on/cgi-bin/smokeping.cgi
# specify this to get syslog logging
syslogfacility = 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.

sudo vim /etc/smokeping/config.d/pathnames

sendmail = /bin/false
imgcache = /var/cache/smokeping/images
imgurl   = ../smokeping/images
...
...


Edit the Alerts

sudo vim /etc/smokeping/config.d/Alerts

to = you@your.email.com
from = monitor-smokeping@your.email.com

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


+ My_Company
menu =  My Company
title = My Company


++ Web_Server_1
menu = Web Server 1
title = Web Server 1
host = web.server.org


Restart smokeping and apache

sudo service smokeping restart
sudo service apache2 reload

Access smokeping

http://some.server.name/cgi-bin/smokeping.cgi


Comments