Zabbix Sender - Output as JSON

XMLWordPrintable

    • Type: New Feature Request
    • Resolution: Won't Do
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None

      Now that Zabbix has the great dependent items and json functions built in it would be great to see zabbix_sender output it's result as json so we can track the values. Something like

      Current:

      root@vpoller-test:/usr/lib/zabbix/externalscripts# zabbix_sender -z localhost -r -i /var/spool/zabbix_sender/send_a.tmp
      info from server: "processed: 0; failed: 101; total: 101; seconds spent: 0.001033"
      sent: 101; skipped: 0; total: 101

      JSON:

      // root@vpoller-test:/usr/lib/zabbix/externalscripts# zabbix_sender -z localhost -r -i /var/spool/zabbix_sender/send_a.tmp
      {
        "sent": 101,
        "skipped": 0,
        "total": 101,
        "time_spent": 0.001033,
        "processed": 0,
        "failed": 0,
      }
      
      

      info from server: "processed: 0; failed: 101; total: 101; seconds spent: 0.001033"
      sent: 101; skipped: 0; total: 101

            Assignee:
            Unassigned
            Reporter:
            Markus Fischbacher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: