Stop all alerts for maintainance
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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
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 |$&| |__| | | |__/ | \| _| |novosirj at umdnj.edu - 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-----
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 Persoenlich: schritte at hebis.uni-frankfurt.de
- mv ~/etc/alerts.cfg /var/tmp
- Do work
- 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 <akshar.bhosale at gmail.com> 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Put it in ~ not tmp On Jun 14, 2011 9:30 PM, "Vernon Everett" <everett.vernon at gmail.com> wrote:
- mv ~/etc/alerts.cfg /var/tmp
- Do work
- 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 <akshar.bhosale at gmail.com> 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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
participants (6)
-
akshar.bhosale@gmail.com
-
everett.vernon@gmail.com
-
josh@imaginenetworksllc.com
-
novosirj@umdnj.edu
-
schritte@hebis.uni-frankfurt.de
-
tomg@mcclatchyinteractive.com