Smokeping Installation in UBUNTU 16.04.4 LTS

Installation Environment 

Virtual Machine (VM Virtualbox / VMWARE)
HDD - 20 GB
RAM - 4 GB
Network Mode - Bridge
UBUNTU - 16.04.4 LTS

IP address - Static / Dynamic
Hostname - www.example.com



Smokeping Installation Steps:

Install a fresh Ubuntu OS (16.04.4) in the VM.
Set hostname as per convenience. (I used www.example.com)
Update and upgrade existing packages.
Install packages and dependencies for smokeping packages  as shown below:


root@www:/home/bolcorp# apt install smokeping -y

We need to modify some configuration as shown below:

root@www:/home/bolcorp# vim /etc/smokeping/config.d/pathnames

#sendmail = /usr/sbin/sendmail
imgcache = /var/cache/smokeping/images
imgurl   = ../smokeping/images
datadir  = /var/lib/smokeping
piddir  = /var/run/smokeping
smokemail = /etc/smokeping/smokemail
tmail = /etc/smokeping/tmail


root@www:/home/bolcorp# vim /etc/smokeping/config.d/General

*** General ***

owner = Sharif
contact  = imsila26112@gmail.com
mailhost = my.mail.host
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.

#cgiurl   = http://some.url/smokeping.cgi
cgiurl   = http://192.168.100.238/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

Now we will restart services.

root@www:/home/bolcorp# a2enmod cgi
root@www:/home/bolcorp# service apache2 restart
root@www:/home/bolcorp# service smokeping restart


Now check the smokeping service in the web bowser :

http://192.168.100.238/cgi-bin/smokeping.cgi




We will add nodes for the monitoring purpose.

root@www:/home/bolcorp# vim /etc/smokeping/config.d/Targets

+ Internet
menu = Internet
#title = Internet

++ Google
menu = Google
title = Google DNS
host = 8.8.8.8

+ BOL
menu = BOL
title = BOL

++ SAM_TOWER_pfSENSE
menu = SAM_TOWER_pf_SENSE
title = SAM_TOWER_pf_SENSE
host = 202.84.42.5

Now restart all services again.

root@www:/home/bolcorp# service apache2 restart
root@www:/home/bolcorp# service smokeping restart


 Now, we will check the smokeping in the browser:

http://192.168.100.238/cgi-bin/smokeping.cgi


Comments

Popular posts from this blog

Cambium cnPilot E400/E410/E500 Configuration Tutorial

Disabling Zimbra's AntiSpam, Amavis and AntiVirus filtering

Error "Unable to retrive Zimbra GPG key for package validation"