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

add new memory types to monitor by vm.memory.size[]

    Details

    • Type: Patch request
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.4.5rc1, 4.0.0alpha1
    • Fix Version/s: 4.0.0alpha3, 4.0 (plan)
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      Linux kernel 4.15 rc4
    • Team:
      Team A
    • Sprint:
      Sprint 24, Sprint 25, Sprint 26
    • Story Points:
      1

      Description

      Submitted patch changes in src/libs/zbxsysinfo/linux/memory.c

      • reordered functions VM_MEMORY_*() to put them in the order as they are used in
        VM_MEMORY_SIZE()
      • added vm.memory.size[] key new parameters:
        vm.memory.size[active]
        vm.memory.size[anon]
        vm.memory.size[inactive]
        vm.memory.size[slabs]
      • added new function VM_MEMORY_PROC_MEMINFO() which is used to handle new vm.memory.size[] parameters
      • use VM_MEMORY_PROC_MEMINFO() to handle:
        vm.memory.size[cached]

      Please let me know if you are happy to add something like this.
      If yes I'll try to add handle more /prc/meminfo entries.

      Patch can be cleanly applied against 3.4 and trunk and probably against older branches as well.

        Attachments

          Activity

            People

            • Assignee:
              viktors.tjarve Viktors Tjarve
              Reporter:
              kloczek Tomasz Kłoczko
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: