[Xymon] Disable one service on all machines

jef.jagers at thomsonreuters.com jef.jagers at thomsonreuters.com
Thu Feb 9 09:10:31 CET 2012


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 
> <schritte at hebis.uni-frankfurt.de 
> <mailto:schritte at hebis.uni-frankfurt.de>> 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: (49) 69 - 798 28908   Fax: (49) 69 798 28817
>     LBS: lbs-f at mlist.uni-frankfurt.de
>     <mailto:lbs-f at mlist.uni-frankfurt.de>
>     Persoenlich: schritte at hebis.uni-frankfurt.de
>     <mailto:schritte at hebis.uni-frankfurt.de>
>
>     _______________________________________________
>     Xymon mailing list
>     Xymon at xymon.com <mailto:Xymon at xymon.com>
>     http://lists.xymon.com/mailman/listinfo/xymon
>
>


-- 
Mit freundlichen Gruessen
Rolf Schrittenlocher

HeBIS-IT, Senckenberganlage 31, 60054 Frankfurt
Tel: (49) 69 - 798 28908   Fax: (49) 69 798 28817
LBS: lbs-f at mlist.uni-frankfurt.de
Persoenlich: schritte at hebis.uni-frankfurt.de

_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon



More information about the Xymon mailing list