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 ~]$
- is duplicated by
-
ZBX-11316 wrong value for SWAP on Solaris
- Closed