Re: [icinga-users] NotificationCommand arguments not inherited
On 10/18/2016 08:50 AM, Markus Frosch wrote: > On 17.10.2016 20:20, Lee Clemens wrote: >> arguments = { >> "--host-output" = { >> required = true >> value = "$host.output$" >> } >> "--host-state" = { >> required = true >> value = "$host.state$" >> } >> } > > Hey Lee, > your problem is that you are *replacing* arguments there. > > What you should do: ( += ) > > Regards > Markus Frosch > Thank you Markus! That makes perfect sense. I created https://dev.icinga.org/issues/12941 to address being able to append (vs replace) arguments in Director. Thanks, Lee Clemens ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users
Re: [icinga-users] NotificationCommand arguments not inherited
On 17.10.2016 20:20, Lee Clemens wrote: > arguments = { > "--host-output" = { > required = true > value = "$host.output$" > } > "--host-state" = { > required = true > value = "$host.state$" > } > } Hey Lee, your problem is that you are *replacing* arguments there. What you should do: ( += ) arguments += { "--host-output" = { required = true value = "$host.output$" } "--host-state" = { required = true value = "$host.state$" } } So you are adding values to the existing dictionary, like a merge (you would replace keys that have the same name). Regards Markus Frosch -- Icinga Open Source Monitoring https://www.icinga.org ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users