Hey folks,
I've configured an ArgoCD template and now I'm trying to setup triggers for that. I can only setup a trigger for sync status individually per application, but I want to make that a variable to check it for every host.
This expression works: last(/Argo CD Application/argocd.applications.sync[random-application-name])="OutOfSync"
This doesn't work: last(/Argo CD Application/argocd.applications.sync[{#NAME}])="OutOfSync"
error: Incorrect item key "argocd.applications.sync[{#NAME}]" provided for trigger expression on "Argo CD Application".
What am I missing / doing wrong?
These are my LLD Macro's in my discovery for application sync status:

Anyone knows how to set these up?
I've configured an ArgoCD template and now I'm trying to setup triggers for that. I can only setup a trigger for sync status individually per application, but I want to make that a variable to check it for every host.
This expression works: last(/Argo CD Application/argocd.applications.sync[random-application-name])="OutOfSync"
This doesn't work: last(/Argo CD Application/argocd.applications.sync[{#NAME}])="OutOfSync"
error: Incorrect item key "argocd.applications.sync[{#NAME}]" provided for trigger expression on "Argo CD Application".
What am I missing / doing wrong?
These are my LLD Macro's in my discovery for application sync status:
Anyone knows how to set these up?
Comment