Open daswars opened 2 years ago
Are you saying that cardmon.sh is never run?
Your examples don't really make sense to me, as the agent would be doing that token substitution, and you'd see
CARD_LIST="test"
or
CARD_LIST=""
in your process' environment.
@daswars it's been some time since you opened this request and we never heard back from you. Is this still occurring on a recent release?
We find a bug in sensu. We cant use env_vars with a empty variable
The check is in sensu, but is never executed and there is also no error message. The env_vars with a filled variable works. (CARD_LIST={{ .labels.card_list | default "test" }}) But in the same way I can use an empty variable directly in the command. cardmon.sh -C {{ .labels.card_list | default "" }}
The crappy thing is that it took us a long time to find the error and sensu here is no error at all, neither in the agent nor in the backend.
Sensu Agent: 6.5.4 Sensu Backend: 6.5.4