Remove/Drop all of one test type
list Shane Presley
Hello, I have ~300 servers, and recently changed the ping column from "conn" to "Ping". Now of course my old conn column is all purple. How can I remove all my conn tests? I tried this, but it didn't work: bb 127.0.0.1 "drop * testname conn" Thanks, Shane
list Matthew Davis
▸
On 10/10/06, Shane Presley <user-f946ba3135e0@xymon.invalid> wrote:
I have ~300 servers, and recently changed the ping column from "conn" to "Ping". Now of course my old conn column is all purple. How can I remove all my conn tests? I tried this, but it didn't work: bb 127.0.0.1 "drop * testname conn"
From a message sent by Hendrik to the list dated: Tue, 5 Sep 2006 09:26:23 The command bb 127.0.0.1 "hobbitdboard" is your friend, combined with a bit of scripting. E.g:
Is it possible to remove a single test from *all* hosts?
bb 127.0.0.1 "hobbitdboard test=MYTEST fields=hostname" | while read H; do bb 127.0.0.1 "drop $H MYTEST"; done
Or all tests from all hosts?
bb 127.0.0.1 "hobbitdboard test=info fields=hostname" | while read H; do bb 127.0.0.1 "drop $H"; done
Or all tests that are purple?
bb 127.0.0.1 "hobbitdboard color=purple fields=hostname,testname" |
while read L; do
HOST=`echo $L | cut -d'|' -f1`
TEST=`echo $L | cut -d'|' -f2`
bb 127.0.0.1 "drop $HOST $TEST"
done
--
Matthew Davis
http://familycampground.org/matthew/
list Shane Presley
Perfect, thank you! Shane
▸
On 10/10/06, Matthew Davis <user-b01c5fac37a6@xymon.invalid> wrote:From a message sent by Hendrik to the list dated: Tue, 5 Sep 2006 09:26:23 The command bb 127.0.0.1 "hobbitdboard" is your friend, combined with a bit of scripting. E.g:Is it possible to remove a single test from *all* hosts?bb 127.0.0.1 "hobbitdboard test=MYTEST fields=hostname" | while read H; do bb 127.0.0.1 "drop $H MYTEST"; doneOr all tests from all hosts?bb 127.0.0.1 "hobbitdboard test=info fields=hostname" | while read H; do bb 127.0.0.1 "drop $H"; doneOr all tests that are purple?bb 127.0.0.1 "hobbitdboard color=purple fields=hostname,testname" | while read L; do HOST=`echo $L | cut -d'|' -f1` TEST=`echo $L | cut -d'|' -f2` bb 127.0.0.1 "drop $HOST $TEST" done