Sync Timeperiod

This forum was archived to /woltlab and is now in read-only mode.
  • Hi


    I use LDAP as my datasource and I would like to import Timeperiods to Icinga. In the LDAP I have the Timeperiod data in iCAL format. I managed to make "Import source" with several property modifiers that build a new property that at the end looks like this:

    "monday = 00:00 - 24:00"

    The problem I can't forge a sync rule that would result in something like this:

    Code
    1. object TimePeriod "test" {
    2. import "legacy-timeperiod"
    3. ranges = {
    4. "monday" = "00:00-24:00"
    5. }
    6. }

    What I get is like:

    Code
    1. object TimePeriod "test" {
    2. import "legacy-timeperiod"
    3. ranges = {
    4. "0" = "monday = 00:00 - 24:00"
    5. }
    6. }

    Has anyone managed to write a sync rule that works as expected?