Tuesday, August 18, 2009

SmokePing Installation (Ubuntu 9.04)

Install SmokePing
- Open Terminal
- Type sudo su to ensure you have Root priviledges
- Install Smokeping along with some other recommended packages

aptitude 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

Configure SmokePing
- Smokeping configuration is in the file /etc/smokeping/config
- Modify some files from /etc/smokeping/config.d directory

vi /etc/smokeping/config.d/General
*** General ***

@include /etc/smokeping/config.d/pathnames

# Please edit this to suit your installation
owner = Falko Timme
contact =" me@example.com"
cgiurl =" http://www.example.com/cgi-bin/smokeping.cgi"
mailhost =" smtp.example.com"
syslogfacility =" local0"
concurrentprobes =" no

Make sure that mailhost contains the primary MX for your email domain

vi /etc/smokeping/config.d/Alerts
*** Alerts ***
to = me@example.com
from = smokealert@example.com
[...]

vi /etc/smokeping/config.d/Targets
[...]
remark = Welcome to the SmokePing website of 'Example Company'
[...]

vi /etc/smokeping/config.d/Targets and edit the configuration accordingly
[...]
+ Local

menu = Local
title = Local Network

++ LocalMachine

menu = Local Machine
title = This host
host = localhost

Save your changes and restart Smokeping
/etc/init.d/smokeping restart

Open a web browser and go to http://www.example.com/cgi-bin/smokeping.cgi

No comments: