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

system.swap.size doesn't work when specifying a device

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 2.0.16
    • Documentation (D)
    • Ubuntu Linux 14.04
      Kernel: 3.13.0-68-generic x86_64

      According to the manual the default item "system.swap.size" supports specifying a swap device as the first parameter. For example:

      system.swap.size[/dev/xvdb,total]
      

      Them manual explicitly says that this variant is available on Linux (on Linux systems). But unfortunately this doesn't work. Zabbix agent returns ZBX_NOTSUPPORTED.

      root@ubuntu:~# cat /proc/swaps
      Filename                                Type            Size    Used    Priority
      /dev/xvdb                               partition       1048572 3128    -1
      /swapfile                               file            1048572 0       -2
      root@ubuntu:~# zabbix_agent -t 'system.swap.size[/dev/xvdb,total]'
      system.swap.size[/dev/xvdb,total]             [m|ZBX_NOTSUPPORTED]
      root@ubuntu:~# zabbix_agent -t 'system.swap.size[/swapfile,total]'
      system.swap.size[/swapfile,total]             [m|ZBX_NOTSUPPORTED]
      root@ubuntu:~# zabbix_agent -t 'system.swap.size[,total]'
      system.swap.size[,total]                      [u|2147475456]
      root@ubuntu:~# zabbix_agent -V
      Zabbix agent v2.0.16 (revision 56692) (12 November 2015)
      Compilation time: Nov 13 2015 07:37:08
      

            Unassigned Unassigned
            pu Pascal Uhlmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: