Xymon Mailing List Archive search

Planned downtime

list Darryl Wisneski
Thu, 6 Jan 2011 14:33:15 -0500
Message-Id: <user-53f38be445cb@xymon.invalid>

On Wed, Jan 05, 2011 at 09:14:48AM -0500, Ralph Mitchell wrote:
   On the other hand, you could use cron to schedule disablement of
   services:

      0 0 * * * /home/xymon/server/bin/bb localhost "disable
   server,domain,org.TEST 90 scheduled downtime"
We have used all three mentioned methods plus one more.

1.) cron for advanced disabling.

the scripts use the bb command.

/home/xymon/server/bin/bb localhost "disable server.* 90 bla_mesg"

# 1:00am to 7:am (420 min)
0 1 13 2 * /var/hobbit/maintenance-script-crow.sh 420
0 1 15 5 * /var/hobbit/maintenance-script-crow.sh 420
#
# 4:00am to 7:00am = (180 min)
0 4 9 1 * /var/hobbit/maintenance-script-crow.sh 180
0 4 6 2 * /var/hobbit/maintenance-script-crow.sh 180
0 4 13 3 * /var/hobbit/maintenance-script-crow.sh 180
0 4 3 4 * /var/hobbit/maintenance-script-crow.sh 180
#
# 12:01am to 3:00am (180 min)
1 0 23 1 * /var/hobbit/maintenance-script-crow.sh 180
1 0 27 2 * /var/hobbit/maintenance-script-crow.sh 180
1 0 20 3 * /var/hobbit/maintenance-script-crow.sh 180
1 0 17 4 * /var/hobbit/maintenance-script-crow.sh 180
1 0 22 5 * /var/hobbit/maintenance-script-crow.sh 180
1 0 19 6 * /var/hobbit/maintenance-script-crow.sh 180
1 0 17 7 * /var/hobbit/maintenance-script-crow.sh 180
1 0 21 8 * /var/hobbit/maintenance-script-crow.sh 180
1 0 18 9 * /var/hobbit/maintenance-script-crow.sh 180
1 0 18 10 * /var/hobbit/maintenance-script-crow.sh 180
1 0 29 11 * /var/hobbit/maintenance-script-crow.sh 180
1 0 18 12 * /var/hobbit/maintenance-script-crow.sh 180
# end

2.) DOWNTIME in bb-hosts used to work for us nicely until our app
guys went nuts and having irregurlar downtimes (then we had to use
option #1).   We still use this for most devel/staging machines.

3.) hobbit-enadis.sh

4.) Move the hobbit-alerts.cg file out of the way and/or just stopped
the hobbit server daemon processes.  Obviously this is a silly way
to do it, but it works too. This will skew your hobbit reporting.

-dkw

   would disable the TEST service on [1]server.domain.org for 90 minutes,
   starting at midnight every night.  Note that the  hostname elements are
   comma-separated, because the dot marks the beginning of the
   test/service column name.  That's a legacy of the old BB days...

   See the "XYMON MESSAGE SYNTAX" section in the bb.1 man page for full
   details.

   Ralph Mitchell

   On Wed, Jan 5, 2011 at 8:30 AM, Ryan Novosielski
   <[2]user-ae4522577e16@xymon.invalid> wrote:

     With that said, DOWNTIME cannot do advanced scheduling which is I
     believe one of the very few shortcomings of Xymon. I have a lot of
     once-a-month maintenance. With Xymon, I believe the maximum time you
     can do between is weekly.

   -- Sent from my Palm Pre

   On Jan 5, 2011 7:49, Johan Sj�berg
   <[3]user-74c177c1220d@xymon.invalid> wrote:

   You can use enable/disable to schedule future disables of hosts and
   tests.

   You can also use the DOWNTIME setting in bb-hosts if it is a recurring
   downtime. See the manual.


   /Johan


   From: Leonardo Bozi [mailto:[4]user-bb28df2d311e@xymon.invalid]
   Sent: den 5 januari 2011 13:37
   To: [5]xymon at xymon.com
   Subject: [xymon] Planned downtime


   Is there a manner to configure on Xymon 4.2.3 a planned downtime?

   And any news about Xymon 4.3.0 stable?
   Thanks in advance.

   Leonardo Bozi
   [6]user-bb28df2d311e@xymon.invalid

References

   1. http://server.domain.org/
   2. mailto:user-ae4522577e16@xymon.invalid
   3. mailto:user-74c177c1220d@xymon.invalid
   4. mailto:user-bb28df2d311e@xymon.invalid
   5. mailto:xymon at xymon.com
   6. mailto:user-bb28df2d311e@xymon.invalid