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

Add new key to return all CPU utilization data in one request

    XMLWordPrintable

Details

    • New Feature Request
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • Agent (G)
    • None

    Description

      Currently various system CPU utilization metrics can be obtained by separate keys, for example system.cpu.util[,idle], system.cpu.util[,user], etc. Because the keys might be polled at different times, the items would have data from different CPU utilization snapshots and summary CPU utilization would not be 100%.

      New key must be added to return all available cpu statistics with single request - system.cpu.get[<cpu>] where:

      • <cpu> - the cpu to return statistics for:
        • all - summary for all cpus (default)
        • details - statistics for each cpu and summary for all cpus (the naming still under discussion)
        • <cpu num> - statistics for the specified cpu

      This key will return json array with statistics for required cpus having format, for example:

      [
        {
          "index": "all",
          "status": "online",
          "stats": {
            "avg1": {
              "system": 0,
              "user": 0,
              "idle": 0
            },
            "avg5": {
              "system": 0,
              "user": 0,
              "idle": 0
            },
            "avg15": {
              "system": 0,
              "user": 0,
              "idle": 0
            }
          }
        },
        {
          "index": "0",
          "status": "online",
          "stats": {
            "avg1": {
              "system": 0,
              "user": 0,
              "idle": 0
            },
            "avg5": {
              "system": 0,
              "user": 0,
              "idle": 0
            },
            "avg15": {
              "system": 0,
              "user": 0,
              "idle": 0
            }
          }
        },
        {
          "index": "1",
          "status": "online",
          "stats": {
            "avg1": {
              "system": 0,
              "user": 0,
              "idle": 0
            },
            "avg5": {
              "system": 0,
              "user": 0,
              "idle": 0
            },
            "avg15": {
              "system": 0,
              "user": 0,
              "idle": 0
            }
          }
        }
      ]

       

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            wiper Andris Zeila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: