Hi,
I need some help with creating a discovery rule:
I have 1 folder C:\temp with 100+ subfolders. For example C:\temp\folderA, C:\temp\folderB, ...
For every subfolder in C:\temp (max depth = 1) i want to create an item which contains the folder size. For example C:\temp\folderA - 10GB, C:\temp\folderB - 20GB.
For this i created a discovery rule with:
Name = folder discovery
Key = vfs.dir.get["C:\\temp",,,,,1]
This should get the subfolders from C:\temp with a max depth of 1.
In LLD macros i have set 1 macro:
LLD macro = {#DIR}
JSONPath = $.*
As Item prototype i used:
Name = folder size {#DIR}
Key = vfs.dir.size[C:\\temp\{#DIR}]
Units = B
When i execute the discovery rule it creates items but not with the result i want.
The results looks like it's collecting the permissions of the folders instead of the size.
vfs.dir.size["C:\temp\[{"modify".15598434 ....
I need some help with creating a discovery rule:
I have 1 folder C:\temp with 100+ subfolders. For example C:\temp\folderA, C:\temp\folderB, ...
For every subfolder in C:\temp (max depth = 1) i want to create an item which contains the folder size. For example C:\temp\folderA - 10GB, C:\temp\folderB - 20GB.
For this i created a discovery rule with:
Name = folder discovery
Key = vfs.dir.get["C:\\temp",,,,,1]
This should get the subfolders from C:\temp with a max depth of 1.
In LLD macros i have set 1 macro:
LLD macro = {#DIR}
JSONPath = $.*
As Item prototype i used:
Name = folder size {#DIR}
Key = vfs.dir.size[C:\\temp\{#DIR}]
Units = B
When i execute the discovery rule it creates items but not with the result i want.
The results looks like it's collecting the permissions of the folders instead of the size.
vfs.dir.size["C:\temp\[{"modify".15598434 ....
Comment