How to monitor only root files on linux system..
-
-
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.
-
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 matchall arguments except path are optional.
Same syntax is for File.Count, which will return number of files instead of size.
Best regards,
Victor
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