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

system.swap.size broken when having no swap space

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 4.0.32, 5.0.13, 5.4.2, 6.0.0alpha1
    • Linux and maybe other systems as well

      create a linux server with 0 swap

      create an item for example system.swap.size[,free] 

       

      the item will become unsupported and return

      system.swap.size[,free] [m|ZBX_NOTSUPPORTED] [Cannot be calculated because swap file size is 0.]

       

      so preprocessing cant be used 

       

      i would have expected to have seen the value of 0

      as this is what linux returns to me when running free 

       

      free -m
      total used free shared buff/cache available
      Mem: 1998 408 509 123 1081 1283
      Swap: 0 0 0

       

            igorbach Igor Gorbach
            patrik patrik uytterhoeven
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: