Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-4789

Zabbix Sender - Output as JSON

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Won't Do
    • Icon: Trivial Trivial
    • None
    • None
    • 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

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

              Created:
              Updated:
              Resolved: