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[]

XMLWordPrintable

    • Icon: Patch request Patch request
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 4.0.0alpha3, 4.0 (plan)
    • 3.4.5rc1, 4.0.0alpha1
    • Agent (G)
    • Linux kernel 4.15 rc4
    • Sprint 24, Sprint 25, Sprint 26
    • 1

      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.

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

              Created:
              Updated:
              Resolved: