Ad Widget

Collapse

Zabbix sender to an item protype

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cedric.marcoux
    Junior Member
    • May 2018
    • 10

    #1

    Zabbix sender to an item protype

    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
    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
    Last edited by cedric.marcoux; 11-07-2023, 11:26.
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    Hey there,

    did you try to use -v or -vv with zabbix_sender to see if it will show you the reason for failure? I dont outright remember what exactly is shows on verbose output by sender.

    Few extra qeustions:
    Are you using standalone Zabbix server or are there Zabbix proxies in play when monitoring the host from which you try to send data?
    Are you using encryption for ZBX_Server <-> ZBX_Agent communication?

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1782

      #3
      "host":"dtcmsmgmt001.TST.grp letsencrypt.exchange.module[(mydomain1.com)] OK",
      "key":null,
      "value":null
      That's not what you should be sending, right?

      Markku

      Comment

      Working...