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

Zabbix Sender - Output as JSON

    XMLWordPrintable

Details

    • New Feature Request
    • Status: Closed
    • Trivial
    • Resolution: Won't Do
    • None
    • None
    • None

    Description

      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:

      [email protected]:/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:

      // [email protected]:/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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: