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

system.swap.size returns bad data on Solaris 10

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.2.0
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Environment:
      Solaris 10

      Description

      Solaris hosts don't appear to be retrieving correct swap info. Unable to make any sense of the returned values compared to those in memstat/swap -s.

      Container:

      [user@server01 ~]$ memstat
       RAM   Total: 262048 MB 
       RAM    Used: 99004 MB 
       RAM    Free: 163044 MB 
       ---------------------
       Swap  Total: 215942 MB 
       Swap   Used: 32016 MB 
       Swap   Free: 183925 MB 
      [user@server01 ~]$ swap -l
      swapfile             dev  swaplo blocks   free
      /dev/swap           4294967295,4294967295      8 67108856 67108856
      [user@server01 ~]$ swap -s
      total: 28859556k bytes allocated + 3923744k reserved = 32783300k used, 188342084k available
      [user@server01 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,total]
      34359734272
      [user@server01 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,used]
      0
      [user@server01 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,free]
      34359734272
      [user@server01 ~]$ 
      

      Container:

      [user@server02 ~]$ memstat
       RAM   Total: 262048 MB 
       RAM    Used: 97712 MB 
       RAM    Free: 164336 MB 
       ---------------------
       Swap  Total: 165982 MB 
       Swap   Used:  1977 MB 
       Swap   Free: 164003 MB 
      [user@server02 ~]$ swap -l
      swapfile             dev  swaplo blocks   free
      /dev/swap           4294967295,4294967295      8 67108856 67108856
      [user@server02 ~]$ swap -s
      total: 1641248k bytes allocated + 385032k reserved = 2026280k used, 167939336k available
      [user@server02 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,total]
      34359734272
      [user@server02 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,used]
      0
      [user@server02 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,free]
      34359734272
      [user@server02 ~]$ 
      

      Global (not the global for the above two containers)

      [user@server03 ~]$ memstat
       RAM   Total: 262048 MB 
       RAM    Used: 97712 MB 
       RAM    Free: 164336 MB 
       ---------------------
       Swap  Total: 165982 MB 
       Swap   Used:  1974 MB 
       Swap   Free: 164007 MB 
      [user@server03 ~]$ swap -l
      swapfile             dev  swaplo blocks   free
      /dev/zvol/dsk/rpool/swap 181,1       8 67108856 67108856
      [user@server03 ~]$ swap -s
      total: 1639960k bytes allocated + 382344k reserved = 2022304k used, 167943352k available
      [user@server03 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,total]
      34359734272
      [user@server03 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,used]
      0
      [user@server03 ~]$ /usr/local/zabbix/bin/zabbix_get -s localhost -k system.swap.size[,free]
      34359734272
      [user@server03 ~]$ 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dangelovich David Angelovich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: