Try below
(Change testname and textblabla and add parameters accordingly)
~server/bin/bb 127.0.0.1 "hobbitdboard test=xxx
fields=hostname,testname" |while read L; do HOST=`echo $L | cut -d'|'
-f1` TEST=`echo $L | cut -d'|' -f2` `~/server/bin/bb 127.0.0.1 "status
$HOST.$TEST blue textblabla"`; done
Regards,
JJ
-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Rolf Schrittenlocher
Sent: Wednesday, February 08, 2012 4:19 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Disable one service on all machines
Hi Michael,
that is possible, of course, I was just curious if there is a build-in
solution. And it is, even within the web interface, Malcolm showed me
(thanks)
Rolf
Write a script that reads bb-hosts to generate a list of hostnames,
and loop through them calling your disable
On Wed, Feb 8, 2012 at 3:39 AM, Rolf Schrittenlocher
<user-ea9d95bffcf0@xymon.invalid
<mailto:user-ea9d95bffcf0@xymon.invalid>> wrote:
Hi,
I'd like to disable one service on all machines temporarily. For
one machine I use
./bb $BBDISP "disable `hostname`.<service> some text like 12h
night an weekend no test"
Of course I can do this for every host but I wonder if there is a
one-liner for disabling the service on all machines. I read in an
older posting that the web-interface hobbit-enadis.sh should show
"ALL" as an option both for hosts and tests, but in our case
(xymon 4.3.0) it doesn't show an option "ALL" in the field
"hosts" but only in "tests",
thanks for hints
Rolf
--
Mit freundlichen Gruessen
Rolf Schrittenlocher
HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-ea9d95bffcf0@xymon.invalid
--
Mit freundlichen Gruessen
Rolf Schrittenlocher
HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-ea9d95bffcf0@xymon.invalid