So I updated the holidays.cfg file for static dates in 2012.
After doing this I'm noticing two issues. First, xymon is reporting Thanksgiving for 2012 is on Nov 21st, when it should be Nov 22nd.
Also, for Victoria Day in Canada it is reporting May 25th, and its actually on May 21st.
Here are official and xymon definitions for each. Victoria Day is celebrated on last Monday before May 25th. So this year that would be May 21st.
I tried to use the following definition In holiday.cfg. Victoria Day: type=-mon month=5 day=25
For Thanksgiving in US its just the 4th Thursday of November, hence: Thanksgiving:type=thu month=11 offset=4
I could see where the Victoria Day logic may not be working, perhaps xymon doesn't back off one Monday from May 25th like I think it should. But no clue as to why the Thanksgiving date is incorrect.
Any ideas as to what I'm doing wrong?
Thanks,
FYI, Victoria Day is fixed by changing negative mon to positive mon and setting the day to the 17th. So Victoria Day:type=+mon month=5 day=17.
Still not sure why Thanksgiving is not displaying the correct date.
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Taylor Lewick Sent: Tuesday, January 03, 2012 8:51 AM To: xymon at xymon.com Subject: [Xymon] Holidays.cfg question
So I updated the holidays.cfg file for static dates in 2012.
After doing this I'm noticing two issues. First, xymon is reporting Thanksgiving for 2012 is on Nov 21st, when it should be Nov 22nd.
Also, for Victoria Day in Canada it is reporting May 25th, and its actually on May 21st.
Here are official and xymon definitions for each. Victoria Day is celebrated on last Monday before May 25th. So this year that would be May 21st.
I tried to use the following definition In holiday.cfg. Victoria Day: type=-mon month=5 day=25
For Thanksgiving in US its just the 4th Thursday of November, hence: Thanksgiving:type=thu month=11 offset=4
I could see where the Victoria Day logic may not be working, perhaps xymon doesn't back off one Monday from May 25th like I think it should. But no clue as to why the Thanksgiving date is incorrect.
Any ideas as to what I'm doing wrong?
Thanks,
FYI - I noticed the same problem with Thanksgiving after moving from an ancient version to 4.3.7. Both Thanksgiving 2011 and 2012 show one day early on the info pages. Haven't taken the time to debug yet. I thought 2012 might be a leap year bug somehow, but 2011 also has the problem, and my other offset holidays appear correct:
Martin Luther King Jr. Day:type=mon month=1 offset=3 Memorial Day:type=mon month=5 offset=5 Labor Day:type=mon month=9 offset=1 Thanksgiving:type=thu month=11 offset=4
On a related note, Martin Luther King Jr. Day is observed on the 3rd Monday of January in the US, not January 15th (the actual birth date). Would others support changing/correcting the definition in holidays.cfg? It currently has static January 15th.
Cheers.
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Taylor Lewick Sent: Tuesday, January 03, 2012 8:51 AM To: xymon at xymon.com Subject: [Xymon] Holidays.cfg question
So I updated the holidays.cfg file for static dates in 2012.
After doing this I'm noticing two issues. First, xymon is reporting Thanksgiving for 2012 is on Nov 21st, when it should be Nov 22nd.
Also, for Victoria Day in Canada it is reporting May 25th, and its actually on May 21st.
Here are official and xymon definitions for each. Victoria Day is celebrated on last Monday before May 25th. So this year that would be May 21st.
I tried to use the following definition In holiday.cfg. Victoria Day: type=-mon month=5 day=25
For Thanksgiving in US its just the 4th Thursday of November, hence: Thanksgiving:type=thu month=11 offset=4
I could see where the Victoria Day logic may not be working, perhaps xymon doesn't back off one Monday from May 25th like I think it should. But no clue as to why the Thanksgiving date is incorrect.
Any ideas as to what I'm doing wrong?
Thanks,
Darin, thanks for the response. I agree with updating the Martin Luther King day. I'm making that change now. I'm guessing by lack of response on the Thanksgiving issue most consider it to not be a big deal. Its easy enough to set a static date, but if a patch/fix is in place I'd add it.
Thanks, Taylor
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Dugan, Darin D [EIT] Sent: Tuesday, January 03, 2012 3:04 PM To: xymon at xymon.com Subject: Re: [Xymon] Holidays.cfg question
FYI - I noticed the same problem with Thanksgiving after moving from an ancient version to 4.3.7. Both Thanksgiving 2011 and 2012 show one day early on the info pages. Haven't taken the time to debug yet. I thought 2012 might be a leap year bug somehow, but 2011 also has the problem, and my other offset holidays appear correct:
Martin Luther King Jr. Day:type=mon month=1 offset=3 Memorial Day:type=mon month=5 offset=5 Labor Day:type=mon month=9 offset=1 Thanksgiving:type=thu month=11 offset=4
On a related note, Martin Luther King Jr. Day is observed on the 3rd Monday of January in the US, not January 15th (the actual birth date). Would others support changing/correcting the definition in holidays.cfg? It currently has static January 15th.
Cheers.
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Taylor Lewick Sent: Tuesday, January 03, 2012 8:51 AM To: xymon at xymon.com Subject: [Xymon] Holidays.cfg question
So I updated the holidays.cfg file for static dates in 2012.
After doing this I'm noticing two issues. First, xymon is reporting Thanksgiving for 2012 is on Nov 21st, when it should be Nov 22nd.
Also, for Victoria Day in Canada it is reporting May 25th, and its actually on May 21st.
Here are official and xymon definitions for each. Victoria Day is celebrated on last Monday before May 25th. So this year that would be May 21st.
I tried to use the following definition In holiday.cfg. Victoria Day: type=-mon month=5 day=25
For Thanksgiving in US its just the 4th Thursday of November, hence: Thanksgiving:type=thu month=11 offset=4
I could see where the Victoria Day logic may not be working, perhaps xymon doesn't back off one Monday from May 25th like I think it should. But no clue as to why the Thanksgiving date is incorrect.
Any ideas as to what I'm doing wrong?
Thanks,
If you have some updates for holidays.cfg, please send them directly to me and I'll get it included in the standard file that ships with Xymon.
I've seen the issues described with Thanksgiving, but haven't had a chance to look into the problem yet. If you don't hear anything about it, it would be OK to send me a reminder in a months time or so :-)
Regards, Henrik
On Wed, 4 Jan 2012 10:31:14 -0600, Taylor Lewick <tlewick at tradebotsystems.com> wrote:
Darin, thanks for the response. I agree with updating the Martin Luther King day. I'm making that change now. I'm guessing by lack of response on the Thanksgiving issue most consider it to not be a big deal. Its easy enough to set a static date, but if a patch/fix is in place I'd add it.
Thanks, Taylor
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Dugan, Darin D [EIT] Sent: Tuesday, January 03, 2012 3:04 PM To: xymon at xymon.com Subject: Re: [Xymon] Holidays.cfg question
FYI - I noticed the same problem with Thanksgiving after moving from an ancient version to 4.3.7. Both Thanksgiving 2011 and 2012 show one day early on the info pages. Haven't taken the time to debug yet. I thought 2012 might be a leap year bug somehow, but 2011 also has the problem, and my other offset holidays appear correct:
Martin Luther King Jr. Day:type=mon month=1 offset=3 Memorial Day:type=mon month=5 offset=5 Labor Day:type=mon month=9 offset=1 Thanksgiving:type=thu month=11 offset=4
On a related note, Martin Luther King Jr. Day is observed on the 3rd Monday of January in the US, not January 15th (the actual birth date). Would others support changing/correcting the definition in holidays.cfg? It currently has static January 15th.
Cheers.
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Taylor Lewick Sent: Tuesday, January 03, 2012 8:51 AM To: xymon at xymon.com Subject: [Xymon] Holidays.cfg question
So I updated the holidays.cfg file for static dates in 2012.
After doing this I'm noticing two issues. First, xymon is reporting Thanksgiving for 2012 is on Nov 21st, when it should be Nov 22nd.
Also, for Victoria Day in Canada it is reporting May 25th, and its actually on May 21st.
Here are official and xymon definitions for each. Victoria Day is celebrated on last Monday before May 25th. So this year that would be May 21st.
I tried to use the following definition In holiday.cfg. Victoria Day: type=-mon month=5 day=25
For Thanksgiving in US its just the 4th Thursday of November, hence: Thanksgiving:type=thu month=11 offset=4
I could see where the Victoria Day logic may not be working, perhaps xymon doesn't back off one Monday from May 25th like I think it should. But no clue as to why the Thanksgiving date is incorrect.
Any ideas as to what I'm doing wrong?
Thanks,
Hi,
Is it possible to use wildcards to drop tests are no longer in use for multiple hosts ?
~/server/bin/xymon 127.0.0.1 "drop * ftp"
Thanks, Ger.
Hi,
I doubt, then do a simple test, but didn't work.
In linux I use this to generate a mass deletion
for host in grep '^ [0-9] \ {1,3 \}' hosts.cfg | awk '{print $ 2}'; do
echo 'xymon "drop $host MyTest "'; done
On Wed, Jan 4, 2012 at 10:07 AM, Ger Maguire <ger.maguire at arra.ie> wrote:
Hi,****
Is it possible to use wildcards to drop tests are no longer in use for multiple hosts ?****
~/server/bin/xymon 127.0.0.1 "drop * ftp"****
Thanks,****
Ger.****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
On 04-01-2012 14:07, Ger Maguire wrote:
Is it possible to use wildcards to drop tests are no longer in use for multiple hosts ?
~/server/bin/xymon 127.0.0.1 "drop * ftp"
No, but a wee bit of scripting will let you do it. Assuming you have removed the "ftp" tests from hosts.cfg, they should be purple. So you can use the "xymondboard" command to get the hostnames, then pass each hostname to a "drop" command:
~/server/bin/xymon 127.0.0.1
"xymondboard test=ftp color=purple fields=hostname" |
while read H; do
~/server/bin/xymon 127.0.0.1 "drop $H ftp"
done
Regards, Henrik
participants (5)
-
dddugan@iastate.edu
-
ger.maguire@arra.ie
-
henrik@hswn.dk
-
herber75@gmail.com
-
tlewick@tradebotsystems.com