Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support (Russian)
  3. Мониторинг свободного места файловой системы

Мониторинг свободного места файловой системы

Scheduled Pinned Locked Moved Support (Russian)
3 Posts 2 Posters 5.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    K
    KArt
    wrote on last edited by
    #1

    Привет!
    При мониторинге свободного места на Линуксе было замечено непонятные показания.
    Вот вывод команды df -h и запросов с NetXMS для параметров FileSystem.FreePerc, FileSystem.AvailPerc:

    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda1       173G   25G  139G  16% /
    /dev/sdb1       187G  103G   75G  58% /mnt/storage
    
    AvailPerc
    /
    80
    /mnt/storage
    39
    
    FreePerc
    /
    85
    /mnt/storage
    45
    

    Почему такие различия, неточности и как они определяются? И в чем разница между AvailPerc и FreePerc?
    P.S. На Windows системах все ок, параметры не имеют различий.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Скорее в df странные проценты. Агент получает значения total, used, и avail для файловой системы и из них считает проценты. Available space - это место доступное не root'у (free - резерв, обычно 5% от объема).

      /mnt/storage

      used %: 103 / 187 * 100 = 55.08021390374332 = 55
      free %: 100 - 55 = 45
      avail %: 75 / 187 * 100 = 40.10695187165775 = 40

      /
      used %: 25 / 173 * 100 = 14.45086705202312 = 15
      free %: 100 - 15 = 85
      avail %: 139 / 173 * 100 = 80.34682080924855 = 80

      Ну и надо проверять от размера в байтах - при выводе в GB тоже могло за счет округления что-то потеряться.

      1 Reply Last reply
      0
      • K
        K
        KArt
        wrote on last edited by
        #3

        Спасибо за объяснение.

        Посмотрите плиз тему https://www.netxms.org/forum/e-eoe-o-koaot-netxms/import-templates/

        Очень неудобно делать импорт.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups