Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11425

zabbix_sender fails to send data over LLD discovered item of type text

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Commercial support required
    • Icon: Major Major
    • None
    • 3.0.4, 3.0.5
    • Server (S)
    • None

      I'm trying to send text data over zabbix_sender to my zabbix server but an error is returned:

      zabbix_sender
      server:~# zabbix_sender -vv -z zabbixserver.mydomain.com -s 'i-8a46d05b' -k 'ldapsync[https://mysite.mydomain.com,lastSync.startFulldate]' -o lllhhh
      zabbix_sender [8622]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000017"}]
      info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000017"
      

      The exit code is 2, which means that the data was sent to the server but it could not parse it.

      server:~# echo $?
      2
      

      Checking the status of that item, which will created by an LLD rule, it status is Enabled. Why?? I supposed that it should be "Not Supported" instead of Enabled.

      I've removed the discovery rule, deleted that item, and created the same item manually. After that, the zabbix_sender, sometimes worked, sometimes not. Bizarre situation. See:

      zabbix_sender
      client:~# zabbix_sender -vv -z zabbixserver.mydomain.com -s i-8a46d05b -k 'ldapsync[https://mysite.mydomain.com,lastSync.startFulldate]' -o 678
      zabbix_sender [5456]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000022"}]
      info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000022"
      sent: 1; skipped: 0; total: 1
      client:~# echo $?
      2
      client:~# 
      client:~# 
      client:~# echo $?
      0
      client:~# zabbix_sender -vv -z zabbixserver.mydomain.com -s i-8a46d05b -k 'ldapsync[https://mysite.mydomain.com,lastSync.startFulldate]' -o 678
      zabbix_sender [5503]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000018"}]
      info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000018"
      sent: 1; skipped: 0; total: 1
      client:~# zabbix_sender -vv -z zabbixserver.mydomain.com -s i-8a46d05b -k 'ldapsync[https://mysite.mydomain.com,lastSync.startFulldate]' -o 678
      zabbix_sender [5505]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000022"}]
      info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000022"
      sent: 1; skipped: 0; total: 1
      client:~# zabbix_sender -vv -z zabbixserver.mydomain.com -s i-8a46d05b -k 'ldapsync[https://mysite.mydomain.com,lastSync.startFulldate]' -o iuysdiuysfdui
      zabbix_sender [5507]: DEBUG: answer [{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000035"}]
      info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000035"
      sent: 1; skipped: 0; total: 1
      client:~# zabbix_sender -vv -z zabbixserver.mydomain.com -s i-8a46d05b -k 'ldapsync[https://mysite.mydomain.com,lastSync.startFulldate]' -o kkkkk
      zabbix_sender [5512]: DEBUG: answer [{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000031"}]
      info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000031"
      sent: 1; skipped: 0; total: 1
      client:~# echo $?
      0
      client:~# zabbix_sender -vv -z zabbixserver.mydomain.com -s 'i-8a46d05b' -k 'ldapsync[https://mysite.mydomain.com,lastSync.startFulldate]' -o lllhhh
      zabbix_sender [8959]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000036"}]
      info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000036"
      sent: 1; skipped: 0; total: 1
      client:~# echo $?
      2
      

      Why??

            Unassigned Unassigned
            bruno.galindro Bruno Galindro da Costa
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: