ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5552

incorrect memory amount for "vm.memory.size[total]" under FreeBSD

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.1.0
    • Fix Version/s: 2.0.4rc1, 2.1.0
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      FreeBSD

      Description

      Real memory is 2GB, but:

      1. zabbix_get -s 10.20.0.20 -k vm.memory.size
        2124775424
      2. zabbix_get -s 10.20.0.20 -k vm.memory.size[total]
        23599611904
      3. zabbix_get -s 10.20.0.20 -k system.uname
        FreeBSD mon 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
      4. zabbix_get -s 10.20.0.20 -k agent.version
        2.1.0

      So, the vm.memory.size[total] is doing something wrong.

        Activity

        Hide
        Alexei Vladishev added a comment -

        If you have some time, please also test with 2.0.x.

        Show
        Alexei Vladishev added a comment - If you have some time, please also test with 2.0.x.
        Hide
        Oleksiy Zagorskyi added a comment - - edited

        yes, please, it's the same freebsd box:

        # ./zabbix_agentd -V
        Zabbix Agent (daemon) v2.0.0 (revision 27675) (21 May 2012)
        Compilation time: Aug 21 2012 14:12:03
        # ./zabbix_agentd -t vm.memory.size
        vm.memory.size                                [u|2124775424]
        # ./zabbix_agentd -t vm.memory.size[total]
        vm.memory.size[total]                         [u|23599611904]
        
        
        # ./zabbix_agentd -V
        Zabbix Agent (daemon) v2.0.1 (revision 28455) (27 June 2012)
        Compilation time: Aug 21 2012 14:10:32
        # ./zabbix_agentd -t vm.memory.size
        vm.memory.size                                [u|2124775424]
        # ./zabbix_agentd -t vm.memory.size[total]
        vm.memory.size[total]                         [u|23599611904]
        
        
        # ./zabbix_agentd -V
        Zabbix Agent (daemon) v2.0.2 (revision 29214) (31 July 2012)
        Compilation time: Sep 11 2012 00:24:56
        # ./zabbix_agentd -t vm.memory.size
        vm.memory.size                                [u|2124775424]
        # ./zabbix_agentd -t vm.memory.size[total]
        vm.memory.size[total]                         [u|23599611904]
        
        Show
        Oleksiy Zagorskyi added a comment - - edited yes, please, it's the same freebsd box: # ./zabbix_agentd -V Zabbix Agent (daemon) v2.0.0 (revision 27675) (21 May 2012) Compilation time: Aug 21 2012 14:12:03 # ./zabbix_agentd -t vm.memory.size vm.memory.size [u|2124775424] # ./zabbix_agentd -t vm.memory.size[total] vm.memory.size[total] [u|23599611904] # ./zabbix_agentd -V Zabbix Agent (daemon) v2.0.1 (revision 28455) (27 June 2012) Compilation time: Aug 21 2012 14:10:32 # ./zabbix_agentd -t vm.memory.size vm.memory.size [u|2124775424] # ./zabbix_agentd -t vm.memory.size[total] vm.memory.size[total] [u|23599611904] # ./zabbix_agentd -V Zabbix Agent (daemon) v2.0.2 (revision 29214) (31 July 2012) Compilation time: Sep 11 2012 00:24:56 # ./zabbix_agentd -t vm.memory.size vm.memory.size [u|2124775424] # ./zabbix_agentd -t vm.memory.size[total] vm.memory.size[total] [u|23599611904]
        Hide
        Alexander Vladishev added a comment - - edited

        Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-5552

        Oleksiy Zagorskyi dev branch tested - works fine now.

        Andris Mednis Can somebody test the fix on 32-bit FreeBSD with more than 4 GB physical memory and a PAE kernel? Or just run "sysctl hw.physmem" command on such system and tell result ?

        Show
        Alexander Vladishev added a comment - - edited Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-5552 Oleksiy Zagorskyi dev branch tested - works fine now. Andris Mednis Can somebody test the fix on 32-bit FreeBSD with more than 4 GB physical memory and a PAE kernel? Or just run "sysctl hw.physmem" command on such system and tell result ?
        Hide
        Andris Mednis added a comment -

        Successfully tested on 32-bit and 64-bit FreeBSD.
        Documents
        http://web.archiveorange.com/archive/v/2AdLpFn5TYbk0WTHRk3P
        http://www.opennet.ru/openforum/vsluhforumID1/93151.html
        suggest that even with this fix "vm.memory.size[total]" will be incorrect on 32-bit FreeBSD with PAE kernel and more than 4 GB memory.

        Show
        Andris Mednis added a comment - Successfully tested on 32-bit and 64-bit FreeBSD. Documents http://web.archiveorange.com/archive/v/2AdLpFn5TYbk0WTHRk3P http://www.opennet.ru/openforum/vsluhforumID1/93151.html suggest that even with this fix "vm.memory.size [total] " will be incorrect on 32-bit FreeBSD with PAE kernel and more than 4 GB memory.
        Hide
        Alexander Vladishev added a comment -

        Fixed in pre-2.0.4 r30500 and pre-2.1.0 (trunk) r30501.

        Show
        Alexander Vladishev added a comment - Fixed in pre-2.0.4 r30500 and pre-2.1.0 (trunk) r30501.

          People

          • Assignee:
            Unassigned
            Reporter:
            Oleksiy Zagorskyi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: