title: How to execute a command in (from) zabbix aws elbv2
body: <p>How to execute a command in (from) zabbix <code>UserParameter=alb.co[*],aws elbv2 describe-listener-certificates --listener-arn *******</code> in sudores.d in file zabbix <code>Defaults:zabbix !requiretty zabbix ALL=NOPASSWD: ALL</code>
  the command is not executed.
  Added credential (macros) to Template</p>
  <pre><code>&lt;zabbix_export&gt;
      &lt;version&gt;5.0&lt;/version&gt;
      &lt;date&gt;2020-07-24T10:52:10Z&lt;/date&gt;
      &lt;groups&gt;
          &lt;group&gt;
              &lt;name&gt;Templates&lt;/name&gt;
          &lt;/group&gt;
      &lt;/groups&gt;
      &lt;templates&gt;
          &lt;template&gt;
              &lt;template&gt;Template alb-co&lt;/template&gt;
              &lt;name&gt;Template ssl-count&lt;/name&gt;
              &lt;groups&gt;
                  &lt;group&gt;
                      &lt;name&gt;Templates&lt;/name&gt;
                  &lt;/group&gt;
              &lt;/groups&gt;
              &lt;applications&gt;
                  &lt;application&gt;
                      &lt;name&gt;alb-co&lt;/name&gt;
                  &lt;/application&gt;
              &lt;/applications&gt;
              &lt;items&gt;
                  &lt;item&gt;
                      &lt;name&gt;alb-co&lt;/name&gt;
                      &lt;key&gt;alb.co[arn,{$HOST.DNS},--access-key{$AWS_ACCESS_KEY},--secret-key{$AWS_SECRET_KEY},--region{$REGION}]&lt;/key&gt;
                      &lt;delay&gt;30s&lt;/delay&gt;
                      &lt;applications&gt;
                          &lt;application&gt;
                              &lt;name&gt;alb-co&lt;/name&gt;
                          &lt;/application&gt;
                      &lt;/applications&gt;
                      &lt;triggers&gt;
                          &lt;trigger&gt;
                              &lt;expression&gt;{last()}&amp;gt;=23&lt;/expression&gt;
                              &lt;name&gt;{ITEM.LASTVALUE} alb-co {HOST.DNS}&lt;/name&gt;
                              &lt;priority&gt;INFO&lt;/priority&gt;
                              &lt;manual_close&gt;YES&lt;/manual_close&gt;
  &lt;/trigger&gt;
                      &lt;/triggers&gt;
                  &lt;/item&gt;
              &lt;/items&gt;
              &lt;macros&gt;
                  &lt;macro&gt;
                      &lt;macro&gt;{$AWS_ACCESS_KEY}&lt;/macro&gt;
                      &lt;type&gt;SECRET_TEXT&lt;/type&gt;
                  &lt;/macro&gt;
                  &lt;macro&gt;
                      &lt;macro&gt;{$AWS_SECRET_KEY}&lt;/macro&gt;
                      &lt;type&gt;SECRET_TEXT&lt;/type&gt;
                  &lt;/macro&gt;
                  &lt;macro&gt;
                      &lt;macro&gt;{$REGION}&lt;/macro&gt;
                      &lt;value&gt;eu-central-1&lt;/value&gt;
                  &lt;/macro&gt;
              &lt;/macros&gt;
          &lt;/template&gt;
      &lt;/templates&gt;
  &lt;/zabbix_export&gt;
  </code></pre>
  <p>But still doesn't work.
  There are no item and trigger errors, it just returns the value 0,
  but should 26. Maybe someone started with this?</p>