More than one Downtime per day

Hi all,
I have some Object which shutdown every day at 6 p.m. and starts at 6:30 a.m. but saturday and sunday they are complete down. So my downtime.conf for these Object looks like this

  ranges = {
"monday"    = "00:00-06:30"
"monday"    = "18:00-06:30"
"tuesday"   = "18:00-06:30"
"wednesday" = "18:00-06:30"
"thursday"  = "18:00-06:30"
"friday"    = "18:00-24:00"
"saturday"  = "00:00-24:00"
"sunday"    = "00:00-24:00"

}

Everything runs well but each Monday at 0:00 a.m. I get notification for the Objects. Looks like that the entry for Monfay 00:00-06:30 is ignored :frowning:
How can I set two downtimes on one day?

I does not get ignored it gets overwritten by the second entry. If you want to entries for one day, simply use a comma-separated list.

ranges = {
  "monday"    = "00:00-06:30,18:00-06:30"
  "tuesday"   = "18:00-06:30"
  "wednesday" = "18:00-06:30"
  "thursday"  = "18:00-06:30"
  "friday"    = "18:00-24:00"
  "saturday"  = "00:00-24:00"
  "sunday"    = "00:00-24:00"
}

It is also in the examples for the timeperiod object.

1 Like

Ups, I looked only on downtimes …
Thanks I try and it works next Monday :innocent:

1 Like

Alternatively you could extend the Sunday Downtime

ranges = {
  "monday"    = "18:00-06:30"
  "tuesday"   = "18:00-06:30"
  "wednesday" = "18:00-06:30"
  "thursday"  = "18:00-06:30"
  "friday"    = "18:00-24:00"
  "saturday"  = "00:00-24:00"
  "sunday"    = "00:00-30:30"
}