Personally, I have a demand to monitor a shared folder, more specifically the Netlogon folder of multiple DCs in the environment.
I tried to use the parameter in the agent:
UserParameter = check.drive.avail[*], powershell.exe -Command "& {if (Test-Path $ 1) {echo 1} else {echo 0}}"
And creating the item: check.drive.avail [{\\server\netlogon}]
But it returns an error that does not support special characters. If I put quotation marks in return unsupported item.
What do you suggest?
Best regards,
Breno Padovan
I tried to use the parameter in the agent:
UserParameter = check.drive.avail[*], powershell.exe -Command "& {if (Test-Path $ 1) {echo 1} else {echo 0}}"
And creating the item: check.drive.avail [{\\server\netlogon}]
But it returns an error that does not support special characters. If I put quotation marks in return unsupported item.
What do you suggest?
Best regards,
Breno Padovan