Xymon Mailing List Archive search

Holidays and planned downtime

8 messages in this thread

list Gillis Bart · Wed, 17 Mar 2010 12:10:38 +0100 ·
I upgraded my xymon 4.2.3 server to the version 4.3.0 beta2 in order to
test the holidays feature.

After the upgrade I had 

-       to create the hobbit-holidays.cfg file manually

-       to add the HOLIDAYFORMAT entry in the hobbitserver.cfg file

After these actions I got the Holiday info in my info pages.

 
Now I'm wondering if it is possible to use this Holiday information in
the planned downtime items of the bb-hosts file.

I did some test buts couldn't include this holidays in the planned
downtime.

 
I configured it like this:

In my hobbit-holidays.cfg file I defined the current day as a test
holiday day.

Check: On the info page I see in the Holiday 2010 (be) tabel a "Test Day
03/17" line.

 
Now I configured planned downtime for this servers in the bb-hosts file:

DOWNTIME=*:W:0600:1600

Check: On the info page I see the info: "Planned downtime:
Mon-Fri:0600:1600"

 
I configured a non active IP address and as I configured
HOLIDAYLIKEWEEKDAY=0 (in the hobbit-holidays.cfg file)I would expect
that this must result in a red alert.

Today (defined as a holiday) should behave as a Sunday.

 
But I got a planned downtime (bleu) code instead of red.

 
Can anyone help me?

Or is this holiday list only usable in the hobbit-alerts.cfg and
availability (REPORTTIME=W:0700:2000) parameters?
list TJ Yang · Wed, 17 Mar 2010 09:00:49 -0500 ·
quoted from Gillis Bart
On Wed, Mar 17, 2010 at 6:10 AM, Gillis Bart <user-cba7bb00b233@xymon.invalid> wrote:
I upgraded my xymon 4.2.3 server to the version 4.3.0 beta2 in order to test
the holidays feature.

After the upgrade I had

-       to create the hobbit-holidays.cfg file manually

-       to add the HOLIDAYFORMAT entry in the hobbitserver.cfg file

After these actions I got the Holiday info in my info pages.
Sorry can't help with holiday issue since I haven't use it myself.

I checked 4.3.0 src tree, hobbit-holidays.cfg is inside
hobbitd/etcfiles directory.
Not sure why Henrik didn't add HOLIDAYFORMAT into hobbitserver.cfg.DIST file.
Maybe this is considered an optional feature  ?

Do you think holiday  should be enabled by default for 4.3.0 ?

-- 
T.J. Yang
list Wiskbroom · Wed, 17 Mar 2010 11:07:06 -0400 ·
quoted from Gillis Bart
On Wed, Mar 17, 2010 at 6:10 AM, Gillis Bart  wrote:
I upgraded my xymon 4.2.3 server to the version 4.3.0 beta2 in order to test
the holidays feature.

After the upgrade I had

-       to create the hobbit-holidays.cfg file manually

-       to add the HOLIDAYFORMAT entry in the hobbitserver.cfg file

After these actions I got the Holiday info in my info pages.
Sorry can't help with holiday issue since I haven't use it myself.

I checked 4.3.0 src tree, hobbit-holidays.cfg is inside
hobbitd/etcfiles directory.
Not sure why Henrik didn't add HOLIDAYFORMAT into hobbitserver.cfg.DIST file.
Perhaps I am mis-reading this, but isn't this defined in 
/etc/hobbit-holidays.cfg?
quoted from TJ Yang

Maybe this is considered an optional feature ?

Do you think holiday should be enabled by default for 4.3.0 ?
list TJ Yang · Wed, 17 Mar 2010 13:14:06 -0500 ·
quoted from Wiskbroom
On Wed, Mar 17, 2010 at 10:07 AM,  <user-ddebaeecde97@xymon.invalid> wrote:
On Wed, Mar 17, 2010 at 6:10 AM, Gillis Bart  wrote:
I upgraded my xymon 4.2.3 server to the version 4.3.0 beta2 in order to test
the holidays feature.

After the upgrade I had

-       to create the hobbit-holidays.cfg file manually

-       to add the HOLIDAYFORMAT entry in the hobbitserver.cfg file

After these actions I got the Holiday info in my info pages.
Sorry can't help with holiday issue since I haven't use it myself.

I checked 4.3.0 src tree, hobbit-holidays.cfg is inside
hobbitd/etcfiles directory.
Not sure why Henrik didn't add HOLIDAYFORMAT into hobbitserver.cfg.DIST file.
Perhaps I am mis-reading this, but isn't this defined in
/etc/hobbit-holidays.cfg?
HOLIDAYFORMAT is defined in hobbtserver.cfg.
See http://www.hswn.dk/hobbit-cgi/viewconf.sh?server for example.

tj
quoted from Wiskbroom
Maybe this is considered an optional feature ?

Do you think holiday should be enabled by default for 4.3.0 ?
-- 
T.J. Yang
list Wiskbroom · Wed, 17 Mar 2010 14:44:28 -0400 ·
quoted from TJ Yang
I checked 4.3.0 src tree, hobbit-holidays.cfg is inside
hobbitd/etcfiles directory.
Not sure why Henrik didn't add HOLIDAYFORMAT into hobbitserver.cfg.DIST file.
Perhaps I am mis-reading this, but isn't this defined in
/etc/hobbit-holidays.cfg?
HOLIDAYFORMAT is defined in hobbtserver.cfg.
See http://www.hswn.dk/hobbit-cgi/viewconf.sh?server for example.
Not in my version, I am running 4.3.0-0.beta2.
quoted from TJ Yang

Maybe this is considered an optional feature ?

Do you think holiday should be enabled by default for 4.3.0 ?
Judging from the above, I would guess so, never used any earlier versions.
list Wiskbroom · Wed, 17 Mar 2010 14:57:45 -0400 ·
By the way, here is the top portion for this file:

# If you want to handle alerts on a holiday
# like alerts on sunday set
#               HOLIDAYLIKEWEEKDAY=0
# or like fridays then set
#               HOLIDAYLIKEWEEKDAY=5
# To disable the holiday calculation set
#               HOLIDAYLIKEWEEKDAY=-1

HOLIDAYLIKEWEEKDAY=-1   # -1= no holiday calculation
                        # 0=handle holidays like sundays
                        # 6=handle holidays like saturdays

So you can disable holidays altogether, or handle in any way you need, to include adding your own even to this file.
quoted from Wiskbroom

I checked 4.3.0 src tree, hobbit-holidays.cfg is inside
hobbitd/etcfiles directory.
Not sure why Henrik didn't add HOLIDAYFORMAT into hobbitserver.cfg.DIST file.
Perhaps I am mis-reading this, but isn't this defined in
/etc/hobbit-holidays.cfg?
HOLIDAYFORMAT is defined in hobbtserver.cfg.
See http://www.hswn.dk/hobbit-cgi/viewconf.sh?server for example.
Not in my version, I am running 4.3.0-0.beta2.

Maybe this is considered an optional feature ?

Do you think holiday should be enabled by default for 4.3.0 ?
Judging from the above, I would guess so, never used any earlier versions.

list TJ Yang · Wed, 17 Mar 2010 14:15:14 -0500 ·
Thanks for the info.
So the missing line in hobbitserver.cfg is really just a format variable.
HOLIDAYFORMAT="%d/%m"                          	# How holiday dates
are displayed

To enable/disable holiday alerting, your following lines are the instruction.
quoted from Wiskbroom


On Wed, Mar 17, 2010 at 1:57 PM,  <user-ddebaeecde97@xymon.invalid> wrote:
By the way, here is the top portion for this file:

# If you want to handle alerts on a holiday
# like alerts on sunday set
#               HOLIDAYLIKEWEEKDAY=0
# or like fridays then set
#               HOLIDAYLIKEWEEKDAY=5
# To disable the holiday calculation set
#               HOLIDAYLIKEWEEKDAY=-1

HOLIDAYLIKEWEEKDAY=-1   # -1= no holiday calculation
                        # 0=handle holidays like sundays
                        # 6=handle holidays like saturdays

So you can disable holidays altogether, or handle in any way you need, to include adding your own even to this file.

I checked 4.3.0 src tree, hobbit-holidays.cfg is inside
hobbitd/etcfiles directory.
Not sure why Henrik didn't add HOLIDAYFORMAT into hobbitserver.cfg.DIST file.
Perhaps I am mis-reading this, but isn't this defined in
/etc/hobbit-holidays.cfg?
HOLIDAYFORMAT is defined in hobbtserver.cfg.
See http://www.hswn.dk/hobbit-cgi/viewconf.sh?server for example.
Not in my version, I am running 4.3.0-0.beta2.

Maybe this is considered an optional feature ?

Do you think holiday should be enabled by default for 4.3.0 ?
Judging from the above, I would guess so, never used any earlier versions.

-- 

T.J. Yang
list Wiskbroom · Wed, 17 Mar 2010 15:35:18 -0400 ·

    Send
I've just added this into my own servers hobbitserver.cfg, the default one was %m/%d, I prefer the reverse (the way you've shown in the config entry below).

HOLIDAYFORMAT="%d/%m"

So far no change, I'll let you know if the display/look does change.

By the way, my holidays were added in bb-hosts like this:

# You need to define at least the Xymon server itself here.
0.0.0.0         .default.               # holidays=us

I changed this to:

# You need to define at least the Xymon server itself here.
0.0.0.0         .default.               # holidays=US

And now my info page is showing US instead of us.

.vp
quoted from TJ Yang
Thanks for the info.
So the missing line in hobbitserver.cfg is really just a format variable.
HOLIDAYFORMAT="%d/%m" # How holiday dates
are displayed

To enable/disable holiday alerting, your following lines are the instruction.


On Wed, Mar 17, 2010 at 1:57 PM,  wrote:
By the way, here is the top portion for this file:

# If you want to handle alerts on a holiday
# like alerts on sunday set
#               HOLIDAYLIKEWEEKDAY=0
# or like fridays then set
#               HOLIDAYLIKEWEEKDAY=5
# To disable the holiday calculation set
#               HOLIDAYLIKEWEEKDAY=-1

HOLIDAYLIKEWEEKDAY=-1   # -1= no holiday calculation
                        # 0=handle holidays like sundays
                        # 6=handle holidays like saturdays

So you can disable holidays altogether, or handle in any way you need, to include adding your own even to this file.

I checked 4.3.0 src tree, hobbit-holidays.cfg is inside
hobbitd/etcfiles directory.
Not sure why Henrik didn't add HOLIDAYFORMAT into hobbitserver.cfg.DIST file.
Perhaps I am mis-reading this, but isn't this defined in
/etc/hobbit-holidays.cfg?
HOLIDAYFORMAT is defined in hobbtserver.cfg.
See http://www.hswn.dk/hobbit-cgi/viewconf.sh?server for example.
Not in my version, I am running 4.3.0-0.beta2.

Maybe this is considered an optional feature ?

Do you think holiday should be enabled by default for 4.3.0 ?
Judging from the above, I would guess so, never used any earlier versions.

--
T.J. Yang