Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/fbsqlcom/public_html/youdidwhatwithtsql.com/wp-includes/pomo/plural-forms.php on line 210

Warning: Cannot modify header information - headers already sent by (output started at /home/fbsqlcom/public_html/youdidwhatwithtsql.com/wp-includes/pomo/plural-forms.php:210) in /home/fbsqlcom/public_html/youdidwhatwithtsql.com/wp-content/plugins/wordpress-mobile-pack/inc/class-wmp-cookie.php on line 50
youdidwhatwithtsql.com » Blog Archive » Nagios timeperiod for Bank Holidays

Nagios timeperiod for Bank Holidays

The Nagios configuration files come with a timeperiod example for US Public holidays but not for good old Blighty! Obviously that won’t do so here’s one for England & Wales (sorry Scotland!).

define timeperiod {
	name			england-wales-holidays
	timeperiod_name		england-wales-holidays
	alias			England & Wales Holidays

	january 1		00:00-00:00	; New Years Day
	march 29		00:00-00:00	; Good Friday (Variable) 29 March good for 2013
	april 1			00:00-00:00	; Easter Monday (Variable) 1 April good for 2013
	monday 1 may		00:00-00:00	; May Day Bank Holiday (1st Monday in month)
	monday -1 may		00:00-00:00	; Spring Bank Holiday (Last Monday in month)
	monday -1 august	00:00-00:00	; Late Summer Bank Holiday
	december 25		00:00-00:00	; Public Holiday rolls forward if this falls on a Weekend (Good until 2016)
	december 26		00:00-00:00	; Public Holiday rolls forward if this falls on a Weekend (Good until 2015)
}

I never realised Scotland had such a variable system for public Holidays so have fun setting that up! Some of the holiday dates here are variable check here for details.

Leave a Reply