# Zones.d/director-global/timeperiods.conf

**URL:** <https://community.icinga.com/t/zones-d-director-global-timeperiods-conf/2064>\
**Category:** Icinga Director\
**Created:** [August 27, 2019, 6:53am UTC](https://community.icinga.com/t/zones-d-director-global-timeperiods-conf/2064 "2019-08-27T06:53:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhir\_45418](https://community.icinga.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@sudhir\_45418](https://community.icinga.com/u/sudhir_45418)\
**Post date:** [August 27, 2019, 6:53am UTC](https://community.icinga.com/t/zones-d-director-global-timeperiods-conf/2064/1 "2019-08-27T06:53:01Z")

</div>

Hello All,

I am getting error while adding ranges in in TimePeriods i.e Days (s) = Monday and TimerPeriods = 00:00-24:00. The error while deploying the configuration through Director is -

[2019-08-27 01:22:18 -0500] critical/config: Error: Validation failed for object ‘24x7x365’ of type ‘TimePeriod’; Attribute ‘ranges’: Invalid time specification ‘Monday’: Invalid time specification: Monday

I can successfully add the ranges in TimePeriod Template.

 ![image](https://community.icinga.com/uploads/default/original/2X/4/4763cbe51f60a8dbd6709224e06e284e8273e491.png)

ICINGA Director V 1.6.2  
Icinga Web 2 Version 2.7.1

Could someone please help.

---

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [August 27, 2019, 8:35am UTC](https://community.icinga.com/t/zones-d-director-global-timeperiods-conf/2064/2 "2019-08-27T08:35:06Z")

</div>

Hi,

timeperiod ranges default to lowercase notation, try `monday` instead.

Cheers,  
Michael

---

<div class="post-metadata">

**Author:** ![sudhir\_45418](https://community.icinga.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@sudhir\_45418](https://community.icinga.com/u/sudhir_45418)\
**Post date:** [August 27, 2019, 9:17am UTC](https://community.icinga.com/t/zones-d-director-global-timeperiods-conf/2064/3 "2019-08-27T09:17:47Z")

</div>

Thanks Michael. This is working now. But in TimePeriod template it is accepting the range in upper case i.e. Monday while in TimePeriod it is now. Please see the template screenshot -

 ![image](https://community.icinga.com/uploads/default/original/2X/e/e081774a252ca3a39eef7350aa5fb16b16b60edb.png)

---

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [August 27, 2019, 9:23am UTC](https://community.icinga.com/t/zones-d-director-global-timeperiods-conf/2064/4 "2019-08-27T09:23:42Z")

</div>

Ranges are free form, you can do a lot of magic things in there. Therefore you need to follow the docs from Icinga 2 for them.

---

<div class="post-metadata">

**Author:** ![sudhir\_45418](https://community.icinga.com/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@sudhir\_45418](https://community.icinga.com/u/sudhir_45418)\
**Post date:** [August 28, 2019, 10:35am UTC](https://community.icinga.com/t/zones-d-director-global-timeperiods-conf/2064/5 "2019-08-28T10:35:53Z")

</div>

Thanks for the information, Michael.
