Ad Widget

Collapse

Wrong free swap space from centos server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syco
    Junior Member
    • Jul 2018
    • 6

    #1

    Wrong free swap space from centos server

    Hi,
    One of the servers I monitor is reporting the wrong swap size, both server and agent are version 4.2
    The client server is a container hosted on LXC.

    Attached a screenshot with the values from zabbix interface, I get the same values using zabbix_get and system.swap.size[,pfree]
    Click image for larger version

Name:	swap.png
Views:	324
Size:	31.6 KB
ID:	385410

    and this is what I get from the client server command line:
    Code:
    $ free -h
                  total        used        free      shared  buff/cache   available
    Mem:           4.0G        1.4G        2.3G         96M        320M        2.6G
    Swap:          8.0G        168M        7.8G
    As you can see the total swap space is correct, but the free swap space and the total memory are not.

    Does someone know what could cause it?
    Thanks
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    You are probably looking on wrong host or collecting data from wrong host.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • roberdaniel
      Junior Member
      • Apr 2019
      • 22

      #3
      Hi all
      I'm having similar problems with windows environments.
      The amount of swap used is not the same as you can see in permon.msc.
      Both server and client are 4.4.8
      Here some pics

      Windows says
      Click image for larger version

Name:	2020-05-27_100641.png
Views:	273
Size:	32.2 KB
ID:	402090
      but Zabbix says
      Click image for larger version

Name:	2020-05-27_102217.png
Views:	308
Size:	33.3 KB
ID:	402091

      Any ideas?

      Comment

      Working...