Network Management & Monitoring - Smokeping - Part I
Network Management & Monitoring - Smokeping - Part I
Network Management & Monitoring - Smokeping - Part I
Smokeping - Part I
In this exercise you will install Smokeping and get it to monitor
various devices in the class network.
Since most of the tasks in this exercise require you to be "root", the
first thing you should do is to connect to your PC and start a root
shell.
$ sudo -s
#
Initial Configuration
Let's make sure that your web server is running:
Let's make sure that Smokeping is running and will restart when
your host is rebooted:
(replace "hostX" and "campusY" with your own host) to check that it
is running.
# cd /etc/smokeping/config.d
# ls -l
Alerts
General
Probes (to be done later)
Targets
Now open the General file (note the first capital letter)
# editor General
owner = NOC
contact = sysadm@localhost
mailhost = localhost
cgiurl =
http://localhost/smokeping/smokeping.cgi
# specify this to get syslog logging
syslogfacility = local5
Save the file and exit. Now let's restart the Smokeping service to
verify that no mistakes have been made before going any further:
Now open the Alerts file (note the first capital letter)
# cd /etc/smokeping/config.d
# editor Alerts
to = sysadm@localhost
from = smokeping-alert@localhost
You can use the classroom Network Diagram on the classroom wiki
to figure out addresses for each item, etc.
Start with:
# cd /etc/smokeping/config.d
# editor Targets
You can take the section from *** Targets *** to the end of the
LocalMachine and make it look something like this. Feel free to use
your own "remark", "menu" text and titles.
NOTE: We strongly recommend that you COPY and PASTE text from
these exercises directly in to the Targets file. Typing all this by hand
will take too long.
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Smokeping Latency Grapher for Network
Monitoring \
and Management Workshop.
+Local
menu = Local Network Monitoring and Management
title = Local Network
++LocalMachine
NOTE: Be sure that you replace "Y" with your campus number.
#
# ********* Classroom Servers **********
#
+NOCServers
menu = NOCServers
title = Network Management Servers
++noc
menu = noc
title = Workshop NOC
host = noc.ws.nsrc.org
#
# ******** Campus Y Hosts ***********
#
+CampusY
++srv1
menu = srv1
title = Campus Y Shared Server 1
host = srv1.campusY.ws.nsrc.org
++host1
menu = host1
title = Campus Y Server 1
host = host1.campusY.ws.nsrc.org
++host2
menu = host2
title = Campus Y Server 2
host = host2.campusY.ws.nsrc.org
++host3
menu = host3
title = Campus Y Server 3
host = host3.campusY.ws.nsrc.org
++host4
menu = host4
title = Campus Y Server 4
host = host4.campusY.ws.nsrc.org
++host5
menu = host5
title = Campus Y Server 5
host = host5.campusY.ws.nsrc.org
++host6
menu = host6
title = Campus Y Server 6
host = host6.campusY.ws.nsrc.org
OK. Let's see if we can get Smokeping to stop and start with the
changes we have made, so far. Save and exit from the Targets file.
Now try doing:
If you see error messages, then read them closely and try to correct
the problem in the Targets file. In addition, Smokeping is now
sending log message to the file /var/log/syslog. You can view what
Smokeping is saying by typing:
# tail -F /var/log/syslog
If there are no errors you can view the results of your changes by
going to:
http://hostX.campusY.ws.nsrc.org/smokeping/
smokeping.cgi
# cd /etc/smokeping/config.d (just to be
sure :-))
# editor Targets
Go to the bottom of the file and add in entries for your campus
routers and switches:
#
#******** Campus Y Network Devices ********
#
+campusYNetwork
#
# ********** Campus Y Border Router *********
#
++border
menu = Border
title = Border Router
+++campusY
menu = campusY
title = Border Router Campus Y
host = bdr1.campusY.ws.nsrc.org
#
# ********** Campus Y Core Router *********
#
++core
menu = Core
title = Core Router
+++campusY
menu = campusY
title = Core Router Campus Y
host = core1.campusY.ws.nsrc.org
#
# ********** Campus Y switches *********
#
++switches
menu = Switches
title = Distribution Switches
+++building1
menu = campusY
title = Campus Y Building 1 Distribution Switch
host = dist1-b1.campusY.ws.nsrc.org
+++building2
menu = Campus Y
title = Campus Y Building 2 Distribution Switch
host = dist1-b2.campusY.ws.nsrc.org