You could may be work it out by transforming your "exclude" into a "use" and create "empty" days for your holidays timeperiods, i.e. days starting and finishing at the same hour (25 december 00:00 to 00:00 for example).
Here is an example with your Sweden timeperiods. This should work. Marc-André ----- Mail Original ----- De: "Cyril Vieville" <[email protected]> À: [email protected] Envoyé: Lundi 25 Mai 2009 17h06:33 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [Nagios-users] timeperiod and exclude property I got a problem on Nagios timeperiods. I wanted to use the exclude property to exclude holidays from the check period but it doesn´t work. I can only make it work if I comment the exclude lines. My timeperiods file below : [...] # 'swedenholidays' timeperiod definition define timeperiod{ name swedenholidays timeperiod_name swedenholidays alias Sweden Holidays january 1 00:00-00:00 ; New Year january 6 00:00-00:00 ; Epiphany 2009-04-10 00:00-00:00 ; Good Friday 2009 2009-04-13 00:00-00:00 ; Easter Monday 2009 2010-04-02 00:00-00:00 ; Good Friday 2010 2010-04-05 00:00-00:00 ; Easter Monday 2010 2011-04-22 00:00-00:00 ; Good Friday 2011 2011-04-25 00:00-00:00 ; Easter Monday 2011 may 1 00:00-00:00 ; Labour Day 2009-05-21 00:00-00:00 ; Ascension Day 2009 2010-05-13 00:00-00:00 ; Ascension Day 2010 2011-02-06 00:00-00:00 ; Ascension Day 2011 june 6 00:00-00:00 ; Swedish National Holiday 2009-06-19 00:00-00:00 ; Midsummer Eve 2009 2010-06-25 00:00-00:00 ; Midsummer Eve 2010 2011-06-24 00:00-00:00 ; Midsummer Eve 2011 december 24 00:00-00:00 ; Christmas Eve december 25 00:00-00:00 ; Christmas december 26 00:00-00:00 ; St Stephens Day december 31 00:00-00:00 ; New Years Eve } # 'swedenworkhours' timeperiod definition define timeperiod{ timeperiod_name swedenworkhours alias Sweden TimeZone Work Hours monday 09:00-18:00 tuesday 09:00-18:00 wednesday 09:00-18:00 thursday 09:00-18:00 friday 09:00-18:00 use swedenholidays } ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
