system.swap.size broken when having no swap space

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 4.0.32, 5.0.13, 5.4.2, 6.0.0alpha1
    • Environment:
      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

       

            Assignee:
            Igor Gorbach (Inactive)
            Reporter:
            Patrik Uytterhoeven
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: