Update in: 19 May 2021
:
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 /accepteula -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 /accepteula -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 /accepteula -q "<FOLDER>" | grep Directories: | gawk "{print $2}" module_end
Files:
(Visited 1,193 times, 1 visits today)