Goals

Notes

 

Building Smokeping

Become root user using “sudo”.

We now install smokeping. We also need to install sendmail as we need some kind of MTA on the system.

$ sudo -s
# apt-get update
# apt-get install smokeping sendmail

Given we are running Ubuntu 14.04, we will need to install a symlink to the apache2 config

# ln -s /etc/smokeping/apache2.conf /etc/apache2/conf-available/smokeping.conf
# a2enconf smokeping

I needed to fix the smokeping configuration file in the apache2 config. So, edit /etc/smokeping/apache2.conf so that the ScriptAlias line looks like this:

ScriptAlias /smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi

Also, the CGI module needs to be enabled in Apache:

# a2enmod cgi

Finally, reload the Apache configuration:

# service apache2 restart

Change directory the the smokeping configuration directory:

# cd /etc/smokeping/config.d

Now edit the General file (note the first capital letter) and change the following lines:

owner    = Sysadm
contact  = sysadm@localhost
mailhost = localhost
cgiurl   = http://localhost/smokeping.cgi
# specify this to get syslog logging
syslogfacility = local5

Save the file and exit. Now edit the Alerts file (note the first capital letter) and change the following lines:

to = root@localhost
from = smokeping-alert@localhost

Save the file and exit. Restart Smokeping:

# service smokeping restart

Smokeping is now ready to be configured to monitor targets we choose.