[smokeping-users] Use of --filter=

King, Michael MKing at bridgew.edu
Mon Jul 18 23:22:47 MEST 2005


I'm having some troubles with the --filter directive...

I'm trying to execute with this --filter

/usr/sbin/smokeping  --filter=/Campus/Google --filter=\!/Campus/East/
--filter=\!/Campus/West/

The \! Was the only way I could get the ! Operator to work from the
command line, but I don't get the results I would expect. It runs all 27
targets in the config file.
I was expecting to just get the 3 Base targets (All I want to test from
this machine.)

Campus has 3 targets
Campus/West has 9 targets (with 3 subheadings)
Campus/East has 12 targets (with 4 subheadings)

When I execute with --filter=/Campus/Google, syslog reports only one
target.  (Correct)
When I execute with --filter=\!/Campus/East/, syslog reports 12 targets
(Correct)
When I execute with --filter=\!/Campus/West/, syslog reports 18 targets
(Correct)
When I execute with --filter=/Campus/West/Wood
--filter=/Campus/East/Miles, syslog reports 6 targets (Correct)
When I execute with --filter=/Campus/Google --filter=\!/Campus/East/, It
executes with 12 targets. (Correct)

When I execute with  --filter=/Campus/Google --filter=\!/Campus/East/
--filter=\!/Campus/West/, it executes all 27 targets. (Not Correct)
When I execute with  --filter=\!/Campus/East/ --filter=\!/Campus/West/,
it executes all 27 targets.	(Not Correct)

So how come when I have a double negative,it get's fairly well loused
up?  Should I be doing the negative a different way?
I'm pretty sure the work around would be to explicitly call the 3 base
level targets.

The plan is for me is to have 9 different machines using a common config
file, just using the filter directive in the init.d script for each
machine.  Then using Rsync, copy the rrd files from 8 remote sites back
to the main site.

Mike

Here is my config file:

*** Targets ***
probe = EchoPingHttp

menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of \
         'Bridgewater State College.'

+ PROBE_CONF
url = /
ignore_cache = yes
revalidate_data = no
port = 80 # default value anyway
timeout = 50 # default is 10s

+ Campus
menu = CAMPUS
title = Campuswide Connectivity

++ Google
menu = Google
title = Google Connectivity Test
host = www.google.com

++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

++ East
menu = EAST
title =East Campus Connectivity
remark = The East Campus Contains: \
         East Hall,  \
         Shea/Durgin,  \
         Miles/Dinardo
         
+++ East_Hall
menu = East Hall
title = East Hall Connectivity Test

++++ Google

menu = Google
title = Google Connectivity Test
host = www.google.com

++++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

+++ Shea
menu = Shea
title = Shea Connectivity Test

++++ Google

menu = Google
title = Google Connectivity Test
host = www.google.com

++++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

+++ Durgin
menu = Durgin
title = Durgin Connectivity Test

++++ Google
menu = Google
title = Google Connectivity Test
host = www.google.com

++++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

+++ Miles
menu = Miles
title = Miles Connectivity Test

++++ Google
menu = Google
title = Google Connectivity Test
host = www.google.com

++++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

+++ Dinardo
menu = Dinardo
title = Dinardo Connectivity Test

++++ Google
menu = Google
title = Google Connectivity Test
host = www.google.com

++++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

++ West
menu = WEST
title = West Campus Connectivity
remark = The West Campus Contains:  \
         Scott Hall,  \
         Pope Hall,  \
         Wood
         
+++ Scott_Hall
menu = Scott
title = Scott Hall Connectivity Test

++++ Google
menu = Google
title = Google Connectivity Test
host = www.google.com

++++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

+++ Pope_Hall
menu = Pope Hall
title = Pope Hall Connectivity Test

++++ Google
menu = Google
title = Google Connectivity Test
host = www.google.com

++++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

+++ Wood
menu = Wood
title = Wood Connectivity Test

++++ Google
menu = Google
title = Google Connectivity Test
host = www.google.com

++++ Yahoo
menu = Yahoo
title = Yahoo Connectivity Test
host = www.yahoo.com

++++ Slashdot
menu = Slashdot
title = Slashdot Connectivity Test
host = slashdot.org

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list