Xymon Mailing List Archive search

Stop all alerts for maintainance

9 messages in this thread

list Akshar Bhosale · Wed, 15 Jun 2011 07:05:06 +0530 ·
hi,
we have xymon 4.2.2. We want to stop all alerts at a time for some
maintainance. How that can be done in one go?
-akshar
list Ryan Novosielski · Tue, 14 Jun 2011 22:09:26 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
quoted from Akshar Bhosale

On 06/14/2011 09:35 PM, akshar bhosale wrote:
hi,
we have xymon 4.2.2. We want to stop all alerts at a time for some
maintainance. How that can be done in one go?
-akshar
The disable page has a list box for service names and host names. "ALL"
is at the top of both lists.

Beware that this will reset any hosts you have temporarily disabled for
some reason and replace their disabled state with the new
information/duration.

- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk34FFUACgkQmb+gadEcsb42pwCfVAwsfDRv9bldHlX1eJC73FXw
Sv8AoNo+H2MYFPGyrH1wMO6CfmdC6Zp6
=HxYG
-----END PGP SIGNATURE-----
list Vernon Everett · Wed, 15 Jun 2011 10:30:04 +0800 ·
1. mv ~/etc/alerts.cfg /var/tmp
2. Do work
3. mv /var/tmp/alerts.cfg ~/etc/alerts.cfg

With no alerts file, it will not send a thing.
Crude, but quick. :-)
quoted from Akshar Bhosale

On 15 June 2011 09:35, akshar bhosale <user-ef04175556bd@xymon.invalid> wrote:
hi,
we have xymon 4.2.2. We want to stop all alerts at a time for some
maintainance. How that can be done in one go?
-akshar

list Josh Luthman · Tue, 14 Jun 2011 22:36:26 -0400 ·
Put it in ~ not tmp
quoted from Vernon Everett
On Jun 14, 2011 9:30 PM, "Vernon Everett" <user-b3f8dacb72c8@xymon.invalid> wrote:
1. mv ~/etc/alerts.cfg /var/tmp
2. Do work
3. mv /var/tmp/alerts.cfg ~/etc/alerts.cfg

With no alerts file, it will not send a thing.
Crude, but quick. :-)

On 15 June 2011 09:35, akshar bhosale <user-ef04175556bd@xymon.invalid> wrote:
hi,
we have xymon 4.2.2. We want to stop all alerts at a time for some
maintainance. How that can be done in one go?
-akshar

list Tom Georgoulias · Wed, 15 Jun 2011 10:40:42 -0400 ·
quoted from Akshar Bhosale
On 06/14/2011 09:35 PM, akshar bhosale wrote:
hi,
we have xymon 4.2.2. We want to stop all alerts at a time for some
maintainance. How that can be done in one go?
-akshar
You should be able to add "DISABLED" to the [alerts] section in tasks.cfg, like this:

[alert]
	DISABLED
	ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg
	NEEDS xymond
	CMD xymond_channel --channel=page  --log=$XYMONSERVERLOGS/alert.log xymond_alert --checkpoint-file=$XYMONTMP/alert.chk --checkpoint-interval=600


I have a couple of other posts to the list to get confirmation that this still works, but haven't gotten any replies.

Tom
list Rolf Schrittenlocher · Wed, 08 Feb 2012 09:39:06 +0100 ·
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
list Malcolm Hunter · Wed, 08 Feb 2012 14:56:23 +0100 ·
quoted from Rolf Schrittenlocher
----- Original Message -----
From: Rolf Schrittenlocher
Sent: 02/08/12 08:39 AM
To: xymon at xymon.com
Subject: [Xymon] Disable one service on all machines

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",
Highlight all then select the service you want to disable in the right-hand column.

Malcolm
--
BBWin Development - The Windows client for Big Brother and Xymon

http://bbwin.sourceforge.net
http://xymon.sourceforge.net
list Rolf Schrittenlocher · Wed, 08 Feb 2012 16:18:39 +0100 ·
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 
quoted from Malcolm Hunter
<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
list Jef Jagers · Thu, 9 Feb 2012 09:10:31 +0100 ·
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
quoted from Rolf Schrittenlocher

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