Hello,
I would like to monitor the age of a folder, instead of the files in the folder. We are using Robocopy to keep a folder up to date. Now we want to use a custom sensor wich checks the age of that folder (wich exists only on a few workstations) and trigger a warning if the Backup failed on one or more workstations.
i'm using a simple Powershell query (Get-ChildItem -Path "
PCNAME\C$\Folder\to\Monitor\" | Select LastWriteTime, Name) wich works great in Powershell:
LastWriteTime Name
------------- ----
27.04.2021 16:35:22 A1
27.04.2021 15:31:17 A2
27.04.2021 15:46:44 B1
27.04.2021 15:56:47 B2
27.04.2021 16:13:12 C1
27.04.2021 16:24:54 C2
27.04.2021 16:32:01 D2
27.04.2021 16:32:23 TK
But it doesnt work as expected, because i get an error:
response not well-formed: "( )" (Code: PE132).
Add comment