Hello,
i'm creating a custom template to monitor Posh-Acme certificate deployement (let's encrypt)
So i use a powershell script to execute posh-acme action then i try and catch error in the code. When error occur i send it to zabbix via trapper-item linked to the domain.com that have issue.
I have made the template with LLD discovery, the discovering is for domain programmed in posh-acme.
I have 10 item-prototype that is created successfully like this:
letsencrypt.exchange.module[(mydomain1.com)]
letsencrypt.iis.module[(mydomain1.com)]
letsencrypt.exchange.module[(mydomain2.com)]
letsencrypt.iis.module[(mydomain2.com)]
.....
This i try to update theses item prototype with zabbix sender without success:
zabbix_sender -z $ZabbixHost -p 10051 -s $AgentHostname -k letsencrypt.exchange.module[(mydomain1.com)] -o "OK";
I have also try to send directly a json without success
It always fail, my issue is how to reach the item protype key from zabbix_sender?
Thanks for help
i'm creating a custom template to monitor Posh-Acme certificate deployement (let's encrypt)
So i use a powershell script to execute posh-acme action then i try and catch error in the code. When error occur i send it to zabbix via trapper-item linked to the domain.com that have issue.
I have made the template with LLD discovery, the discovering is for domain programmed in posh-acme.
I have 10 item-prototype that is created successfully like this:
letsencrypt.exchange.module[(mydomain1.com)]
letsencrypt.iis.module[(mydomain1.com)]
letsencrypt.exchange.module[(mydomain2.com)]
letsencrypt.iis.module[(mydomain2.com)]
.....
This i try to update theses item prototype with zabbix sender without success:
zabbix_sender -z $ZabbixHost -p 10051 -s $AgentHostname -k letsencrypt.exchange.module[(mydomain1.com)] -o "OK";
I have also try to send directly a json without success
Code:
{"request":"sender data","data":[{"host":"dtcmsmgmt001.TST.grp letsencrypt.exchange.module[(mydomain1.com)] OK","key":null,"value":null}]}
success processed: 0; failed: 1; total: 1; seconds spent: 0.000063
It always fail, my issue is how to reach the item protype key from zabbix_sender?
Thanks for help
Comment