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

Add/delete some modes for vm.memory.size key under FreeBSD (or all BSD) and other OS

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.9.9 (beta)
    • None
    • Agent (G)
    • FreeBSD

      Now in Zabbix we have many parameters for monitoring memory under FreeBSD: vm.memory.size[<mode>]
      <mode> can be:

      total
      free
      used
      shared
      cached

      5 parameters! ('pfree' and 'pused' doesn't work in my servers, and doesn't work correct anyway) Ok, not bad.
      But I don't know what does 'shared' and 'used' parameters mean.

      If you use FreeBSD go to `top`. At head you can see memory parts:
      Active, Inact, Wired, Cache, Buf and Free. You can't see 'shared' and 'used' parameters. And you don't know how to get correct or real free memory!

      In order to know REAL FREE MEMory you need:
      1. Get from sysctl folowing vars:

      "vm.stats.vm.v_inactive_count" * "vm.stats.vm.v_page_size" (lets call it INACT)
      "vm.stats.vm.v_cache_count" * "vm.stats.vm.v_page_size" (CACHE)
      "vm.stats.vm.v_free_count" * "vm.stats.vm.v_page_size" (FREE)

      2. Calculate REAL FREE MEMory:
      free_mem = INACT + CACHE + FREE

      3. If you want to get REAL USED MEMory:
      total_mem = "vm.stats.vm.v_page_count" * "vm.stats.vm.v_page_size" (it defines correct in zabbix)
      used_mem = total_mem - free_mem

      Conclusion 4 developers:
      Please make correct calculation of FreeBSD memory!
      You need add INACT (sysclt vm.stats.vm.v_inactive_count) mode to vm.memory.size.
      Then make 'pfree' and 'pused' mode calculation as I described below (real free and real used memory).
      I think you need to delete 'shared' and 'used' modes for fbsd, because it is not necessary under FreeBSD.

      Thanks!

      P.S. maybe it right for all BSD systems.

      ____________

      ? ????? ?????? Zabbix ????? ?????????? ?? ???- ???????? ??? FreeBSD (? ????? ? ??? ???? BSD) ???????? vm.memory.size:
      shared ? used (? ???? ?? ???? ??? ??? ?? ???????? ?????)
      ? ?? ?? ????? ??????????? ?????????? ???????? inactive ?????? (?? ? active).
      ? ???? ?? ? ???? ????? ?? ?????????? ?????? pused ? pfree, ?? ? ??? ???? ???????????.

      ????? ?????? ??????? ????????? ??? ?????????? ????????? ??????, ?.?. ?? ???? ??? ?????? ??????? ?????????????? swap, ????? ?????????? ???????? ????????? ????.
      ???????!

            dimir dimir
            mox1987 Pavel Timofeev
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: