I would like to Monitor the number of subfolders in a specific Folder.

I found the customer sensor in this link:

https://www.paessler.com/knowledgebase/en/topic/27023-count-number-of-subfolders

(by the way, I tried posting there, but I wasn't able to stay logged in whenever I browsed to that page).

Please not the Server is not a probe but simply a remote target.

I have implemented the custom sensor, but I always the error message

"Systemfehler: Folder
exchange\c$\test folder\ not found. (Code: PE022)"

I have tried several forms:

C:\test folder "C:\test folder" C$\test folder "C$\test folder"
exchange\c$\test folder "
exchange\c$\test folder"

Nothing works.

How do I correctly specify the UNC path including a path with spaces?

The local path would be 'C:\test folder'.

I tried the Standard PRTG Folder sensor. This works, but unfortunately cannot give me the number of subfolders.

Please help.


Article Comments

"c:\test folder" should be right. Please check the access rights, because PRTG runs default on the system account. Please follow the last post of the author of this script.


Oct, 2013 - Permalink

Hello,

I have defined the Parameter as such: "c:\test ordner"

I get the output:

--- Systemfehler: \test ordner" not found. (Code: PE022) ---

For some reason the "C:" is missing.


Oct, 2013 - Permalink

I guess the problem is based on quotes.


Oct, 2013 - Permalink

Hello,

I have applied the quotes the way you suggested.

Please clarify.

Hallo,

ich kann Ihren Lösungsansatz nicht folgen bzw. kann keinen erkennen.

Die Anführungszeichen habe ich so gesetzt, wie Sie es vorgegeben haben.

Ich bitte Sie herzlich um klären.

Vielen Dank.


Oct, 2013 - Permalink

Hallo ich kann ihnen leider nicht weiterhelfen und nur raten wo das Problem liegen könnte da es kein offizelles Script von uns ist. Bitte wenden Sie sich an den Autor.


Oct, 2013 - Permalink