1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
:

You can monitoring the folder size or the number of files that contains a folder with all its subdirectories through “du” command in Windows too.

Module data

You can download here “du.exe” and copy in folder ..pandora_agentutil of Windows agent.”Du” command is not integrated into windows
Using this command you can monitoring the size of a folder, the file number containing that folder or the number of directories.

Examples of use:

module_begin
module_name Folder size
module_type generic_data
module_exec du -q "<FOLDER> | grep Size: | gawk "{print $2}"
module_end
module_begin
module_name Number of files in a directory
module_type generic_data
module_exec du -q "<FOLDER>" | grep Files: | gawk "{print $2}"
module_end
module_begin
moduel_name Number of folder in a directory
module_type generic_data
module_exec du -q "<FOLDER>" | grep Directories: | gawk "{print $2}"
module_end

Files:

DU.zip

(Visited 460 times, 1 visits today)