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
  3. How to monitor only root files on linux system..

How to monitor only root files on linux system..

Scheduled Pinned Locked Moved Support
3 Posts 3 Posters 26.2k 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.
  • Z
    Z
    zeki
    wrote on last edited by
    #1

    Hi all;

    We are monitoring our clients disk threshold and usage , but on the some Linux systems  we need to monitoring only "root" folders (or special folders) not all disk . Can we do that on netxms version 1.2.14 . if yes how can we do that.
    Thanks

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      Walk .1.3.6.1.2.1.25.2.3.1 that is the StorageEntry MIB.
      Specifically .1.3.6.1.2.1.25.2.3.1.3 will give you the descriptions.

      You can only monitor file systems, not separate files, so if you want to monitor a directory, it has to be mounted (the actual directory needs to be mounted), not just a part of a mounted FS.

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

        Hi,

        you can do this using agent and parameter File.Size with recursive option set to on. For example, to monitor total size of all files under /home/user, add the following DCI:

        File.Size(/home/user,*,1)

        For reference, full description of File.Size is below:

        File.Size(path, pattern, recursive, size, age)
        where
            path    : path to directory or file to check
            pattern : pattern for file name matching
            recursive : recursion flag; if set to 1 or true, agent will scan subdirectories
            size      : size filter; if < 0, only files with size less than abs(value) will match;
                                  if > 0, only files with size greater than value will match
            age      : age filter; if < 0, only files created after now - abs(value) will match;
                                  if > 0, only files created before now - value will match

        all arguments except path are optional.

        Same syntax is for File.Count, which will return number of files instead of size.

        Best regards,
        Victor

        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