I´m currently working on implementing holidays dynamicly via an external api into the Icinga-Director to use them as timeperiod-objects for excludes and special notification definition. The import itself is working as intended, but I can´t get the import of the ranges working. I´ve already played around with the director-ui and even the code itself and it doesn´t seem to work. If I set “Time Ranges” in the destination filed of the sync rule I can only set one parameter as source column. When it is loaded it gets casted to an array which leads to ranges like “ARRAY_INDEX => SOURCE_COLUMN” i.e “0 => 00:00-24:00” which is not correct. Is there a way to correctly assign the key and value for the range-object via the sync rule? Maybe if I use custom expressions and a special notation or something like that?
Thanks in advance,