Xymon Mailing List Archive search

Planned downtime

13 messages in this thread

list Leonardo Bozi · Wed, 5 Jan 2011 04:37:13 -0800 (PST) ·
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
user-bb28df2d311e@xymon.invalid
list Johan Sjöberg · Wed, 5 Jan 2011 13:47:26 +0100 ·
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
quoted from Leonardo Bozi

From: Leonardo Bozi [mailto:user-bb28df2d311e@xymon.invalid]
Sent: den 5 januari 2011 13:37
To: 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

user-bb28df2d311e@xymon.invalid<mailto:user-bb28df2d311e@xymon.invalid>
list Ryan Novosielski · Wed, 5 Jan 2011 08:30:45 -0500 ·
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 &lt;user-74c177c1220d@xymon.invalid&gt; 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.&nbsp;/Johan&nbsp;From: Leonardo Bozi [mailto:user-bb28df2d311e@xymon.invalid] 
Sent: den 5 januari 2011 13:37
To: xymon at xymon.com
Subject: [xymon] Planned downtime&nbsp;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
user-bb28df2d311e@xymon.invalid&nbsp;
&nbsp;
list Ralph Mitchell · Wed, 5 Jan 2011 09:14:48 -0500 ·
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"

would disable the TEST service on 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
quoted from Ryan Novosielski


On Wed, Jan 5, 2011 at 8:30 AM, Ryan Novosielski <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 <user-74c177c1220d@xymon.invalid>
quoted from Ryan Novosielski
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:user-bb28df2d311e@xymon.invalid]
*Sent:* den 5 januari 2011 13:37
*To:* 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
user-bb28df2d311e@xymon.invalid

list Ryan Novosielski · Wed, 05 Jan 2011 10:06:41 -0500 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, that is what I currently do (I actually have some that are second
X-day of the month which are even more complicated), but it is a shame
that I now do not see the downtime information in the 'info' test. With
BB, no such test existed so it wasn't as big of a deal as everyone was
used to looking in cron.
quoted from Ralph Mitchell

On 1/5/2011 9:14 AM, 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"

would disable the TEST service on server.domain.org

<http://server.domain.org>; for 90 minutes, starting at midnight every
quoted from Ralph Mitchell
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 <user-ae4522577e16@xymon.invalid
<mailto: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 <user-74c177c1220d@xymon.invalid
    <mailto: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:user-bb28df2d311e@xymon.invalid
    <mailto:user-bb28df2d311e@xymon.invalid>]
    *Sent:* den 5 januari 2011 13:37

    *To:* xymon at xymon.com <mailto:xymon at xymon.com>
quoted from Ralph Mitchell
    *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

    user-bb28df2d311e@xymon.invalid <mailto:user-bb28df2d311e@xymon.invalid>

     
- -- - ---- _  _ _  _ ___  _  _  _
|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 v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0kiQAACgkQmb+gadEcsb4hkACgo9Cx0ZkJaHmQ22Hifa90Ck3f
/yYAn21/7pxJg11WFB5JOJUHWLuCGsls
=wh1m
-----END PGP SIGNATURE-----
list Ralph Mitchell · Wed, 5 Jan 2011 12:27:22 -0500 ·
Do you know about the notes directory??  Somewhere like
<xymonhome>/server/www/notes.  Drop a file in there called
"myserver.domain.com.html" and you'll get a link on the info page just under
the Hostname/OS/IP lines.  You'll also find that the hostname becomes a link
wherever it appears in the main or non-green pages.

Not as good as having it in the info page, but better than nothing.
quoted from Ryan Novosielski

Ralph Mitchell


On Wed, Jan 5, 2011 at 10:06 AM, Ryan Novosielski <user-ae4522577e16@xymon.invalid>wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, that is what I currently do (I actually have some that are second
X-day of the month which are even more complicated), but it is a shame
that I now do not see the downtime information in the 'info' test. With
BB, no such test existed so it wasn't as big of a deal as everyone was
used to looking in cron.

On 1/5/2011 9:14 AM, 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"

would disable the TEST service on server.domain.org
<http://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 <user-ae4522577e16@xymon.invalid
<mailto: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 <user-74c177c1220d@xymon.invalid
    <mailto: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:user-bb28df2d311e@xymon.invalid
    <mailto:user-bb28df2d311e@xymon.invalid>]
    *Sent:* den 5 januari 2011 13:37
    *To:* xymon at xymon.com <mailto: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
    user-bb28df2d311e@xymon.invalid <mailto:user-bb28df2d311e@xymon.invalid>

- --
- ---- _  _ _  _ ___  _  _  _
|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 v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0kiQAACgkQmb+gadEcsb4hkACgo9Cx0ZkJaHmQ22Hifa90Ck3f
/yYAn21/7pxJg11WFB5JOJUHWLuCGsls
=wh1m
-----END PGP SIGNATURE-----

list Ryan Novosielski · Wed, 05 Jan 2011 14:19:22 -0500 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yeah, that is true. I should probably go through and do that -- there
are not that many servers where this is an issue.

If I had something to wish for though, it would be a better scheduler. ;)
quoted from Ralph Mitchell

On 01/05/2011 12:27 PM, Ralph Mitchell wrote:
Do you know about the notes directory??  Somewhere like
<xymonhome>/server/www/notes.  Drop a file in there called
"myserver.domain.com.html" and you'll get a link on the info page just
under the Hostname/OS/IP lines.  You'll also find that the hostname
becomes a link wherever it appears in the main or non-green pages.

Not as good as having it in the info page, but better than nothing.

Ralph Mitchell


On Wed, Jan 5, 2011 at 10:06 AM, Ryan Novosielski <user-ae4522577e16@xymon.invalid
<mailto:user-ae4522577e16@xymon.invalid>> wrote:

Yes, that is what I currently do (I actually have some that are second
X-day of the month which are even more complicated), but it is a shame
that I now do not see the downtime information in the 'info' test. With
BB, no such test existed so it wasn't as big of a deal as everyone was
used to looking in cron.

On 1/5/2011 9:14 AM, 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"
would disable the TEST service on server.domain.org
<http://server.domain.org>;
<http://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
<user-ae4522577e16@xymon.invalid <mailto:user-ae4522577e16@xymon.invalid>
<mailto:user-ae4522577e16@xymon.invalid <mailto: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
<user-74c177c1220d@xymon.invalid
<mailto: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:user-bb28df2d311e@xymon.invalid
    <mailto:user-bb28df2d311e@xymon.invalid <mailto:user-bb28df2d311e@xymon.invalid>>]
    *Sent:* den 5 januari 2011 13:37
    *To:* xymon at xymon.com <mailto:xymon at xymon.com>
<mailto:xymon at xymon.com <mailto:xymon at xymon.com>>
quoted from Ralph Mitchell
    *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
    user-bb28df2d311e@xymon.invalid <mailto:user-bb28df2d311e@xymon.invalid>
xymon-unsubscribe at xymon.com <mailto:xymon-unsubscribe at xymon.com>
quoted from Ralph Mitchell


- -- - ---- _  _ _  _ ___  _  _  _
|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.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0kxDoACgkQmb+gadEcsb7vegCgjDyb3futvW4u8a7WXrGjjYWh
sZ0Anj0MBBfyIM4kG+dRO0VRwgVc/cmn
=7hYy
-----END PGP SIGNATURE-----
list Darryl Wisneski · Thu, 6 Jan 2011 14:33:15 -0500 ·
quoted from Ralph Mitchell
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,
quoted from Ryan Novosielski
   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
quoted from Ryan Novosielski
   <[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
list Henrik Størner · Fri, 7 Jan 2011 11:35:30 +0000 (UTC) ·
quoted from Ryan Novosielski
In <12942342567953140 at voodoo> "Ryan Novosielski" <user-ae4522577e16@xymon.invalid> writes:
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 ma=
intenance. With Xymon, I believe the maximum time you can do between is wee=
kly.
I haven't heard this request before, but it would make sense to have some
more advanced scheduling options for DOWNTIME. I'll put it on the to-do 
list for post-4.3.0


Regards,
Henrik
list Thomas R. Brand · Fri, 7 Jan 2011 11:16:52 -0500 ·
Since you mention a 'to-do' list....

I have thousands of systems spread out over 7 time zones.  
They all have 'planned downtime' scenarios for the same local time --
eg,  00:30-01:00.
It would be nice to have the downtime checker be able to use client
local time instead of server time.

Tom
quoted from Henrik Størner

-----Original Message-----
From: Henrik "StC8rner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Friday, January 07, 2011 6:36 AM
To: xymon at xymon.com
Subject: Re: [xymon] Planned downtime

In <12942342567953140 at voodoo> "Ryan Novosielski" <user-ae4522577e16@xymon.invalid>
writes:
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 ma=
intenance. With Xymon, I believe the maximum time you can do between is
wee=
kly.
I haven't heard this request before, but it would make sense to have
some
more advanced scheduling options for DOWNTIME. I'll put it on the to-do 
list for post-4.3.0


Regards,
Henrik
list Torsten Richter · Thu, 16 May 2013 09:29:22 +0200 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

I'm running 4.3.10 at the moment on Linux and have a question about the
DOWNTIME parameter in hosts.cfg.
- From the man page of hosts.cfg:

DOWNTIME=day:starttime:endtime[,day:starttime:endtime]
DOWNTIME=columns:day:starttime:endtime:cause[,columns:day:starttime:endtime:cause]
    This tag can be used to ignore failed checks during specific times
of the day - e.g. if you run services that are only monitored e.g.
Mon-Fri 8am-5pm, or you always reboot a server every Monday between 5
and 6 pm.

    What happens is that if a test fails during the specified time, it
is reported with status BLUE instead of yellow or red. Thus you can
still see when the service was unavailable, but alarms will not be
triggered and the downtime is not counted in the availability
calculations generated by the Xymon reports.

Can someone confirm that this only works for red and yellow alerts but
not for the purple ones?
Can this behaviour be adjusted somewhere? Except for setting the status
lifetime in the scripts of course.

Thanks
Torsten
- -- 
+---------------------------------------------------------+
| E-mail  : user-c862b499d9fa@xymon.invalid			  |
|							  |
| Homepage: http://www.richter-it.net/			  |
+---------------------------------------------------------+
Download my public key from:
http://gpg-keyserver.de/pks/lookup?search=0x899093AC&op=get
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iEYEARECAAYFAlGUitIACgkQ7DlmxomQk6x3KQCfdilkJjoNaiN65n+T3je5yNFy
spcAoKxBFyFbfwi+5k2Ag8jwiaLVL7k7
=HKqb
-----END PGP SIGNATURE-----
list Henrik Størner · Thu, 16 May 2013 12:11:55 +0200 ·
quoted from Torsten Richter
On 16.05.2013 09:29, Torsten Richter wrote:
I'm running 4.3.10 at the moment on Linux and have a question about the
DOWNTIME parameter in hosts.cfg.
[snip]
Can someone confirm that this only works for red and yellow alerts but
not for the purple ones?
Can this behaviour be adjusted somewhere? Except for setting the status
lifetime in the scripts of course.
You're right that it only affects red or yellow alerts.

It isn't something that you can configure, but I do see your point in having this also work for a purple status - typically local custom tests that are not running when the server is down.

You can change it in the code: In 4.3.10, this is in xymon-4.3.10/xymond/xymond.c on line 1194:

  if ((*color == COL_RED) || (*color == COL_YELLOW)) {

should be changed to

  if ((*color == COL_RED) || (*color == COL_YELLOW) || (*color == COL_PURPLE)) {

Run make + make install (or copy xymond/xymond over to the bin/ directory).

I'll make this change for 4.3.12. Note that you'll have to restart Xymon for this to take effect.


Regards.
Henrik
list Torsten Richter · Thu, 16 May 2013 12:40:52 +0200 (CEST) ·
Hi Henrik,

thanks for your quick answer.
Well then I have to check when I can have a "planned downtime" for the XYmon
server restart ;-)

Regards
Torsten

user-ce4a2c883f75@xymon.invalid hat am 16. Mai 2013 um 12:11 geschrieben:
quoted from Torsten Richter


On 16.05.2013 09:29, Torsten Richter wrote:
I'm running 4.3.10 at the moment on Linux and have a question about
the
DOWNTIME parameter in hosts.cfg.
[snip]
Can someone confirm that this only works for red and yellow alerts
but
not for the purple ones?
Can this behaviour be adjusted somewhere? Except for setting the
status
lifetime in the scripts of course.
You're right that it only affects red or yellow alerts.

It isn't something that you can configure, but I do see your point in
having this also work for a purple status - typically local custom tests
that are not running when the server is down.

You can change it in the code: In 4.3.10, this is in
xymon-4.3.10/xymond/xymond.c on line 1194:

if ((*color == COL_RED) || (*color == COL_YELLOW)) {

should be changed to

if ((*color == COL_RED) || (*color == COL_YELLOW) || (*color ==
COL_PURPLE)) {

Run make + make install (or copy xymond/xymond over to the bin/
directory).

I'll make this change for 4.3.12. Note that you'll have to restart
Xymon for this to take effect.


Regards.
Henrik