Ad Widget

Collapse

system.swap.size[,used] does not works. Not supported?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bogdar
    Member
    • Jan 2009
    • 33

    #1

    system.swap.size[,used] does not works. Not supported?

    Hello.

    I'd like to monitor swap usage for performance investigation on multiple hosts.

    For some reasons, system.swap.size[,used] returns [m|ZBX_NOTSUPPORTED]

    There are free, pfree, pused options that works, but they are useless for performance monitoring, because depend on swap space. For example:
    Let there are two same hosts with 512Mb and 4096Mb swap space with 20% swap utilisation. This mean ~100Mb for first, and 1Gb (!!!) for second. Sure, 100Mb of swaped memory mostly safe for modern systems, while 1Gb is reason for attention.
    So for now, I have to calculate in mind system.swap.size[,total] * system.swap.size[,pused] to get real usage stats, and I can't setup alerts for group of hosts like 'warn admins if hosts with IDE drives use >100 Mb of swap.'
  • caarts
    Member
    Zabbix Certified Specialist
    • Aug 2008
    • 37

    #2
    What zabbix agent version are you using and what is the OS of the monitord host?

    Comment

    • bogdar
      Member
      • Jan 2009
      • 33

      #3
      # zabbix_agentd -t agent.version
      agent.version [s|1.6.2]

      # zabbix_agentd -t system.swap.size[,used]
      system.swap.size[,used] [m|ZBX_NOTSUPPORTED]

      # zabbix_agentd -t system.swap.size[,pused]
      system.swap.size[,pused] [d|0.003052]

      # zabbix_agentd -t system.uname
      system.uname [t|Linux etch-test 2.6.18-6-xen-amd64 #1 SMP Mon Jun 16 23:42:47 UTC 2008 x86_64 GNU/Linux]

      Comment

      • makini
        Member
        • Jul 2006
        • 59

        #4
        Emm...

        There's no "used" mode for system.swap.size[,]
        only "free" & "total" according to this (it's for 1.1x but didn't change much since, it's the same in current docs too).

        I do this to see the swap usage raise:
        ({Default_template:system.swap.size[,total].last(0)})/({Default_template:system.swap.size[,free].last(0)})>1.1
        or u can always subtract too

        Comment

        Working...