What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How can I monitor the number of subfolders in a folder?

Votes:

0

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.

sensor subfolders windows

Created on Oct 21, 2013 12:55:12 PM



5 Replies

Votes:

0

"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.

Created on Oct 21, 2013 1:09:43 PM by  Michael Schmidt [Paessler Support] (150) 1 1



Votes:

0

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.

Created on Oct 23, 2013 9:43:26 AM



Votes:

0

I guess the problem is based on quotes.

Created on Oct 23, 2013 12:20:22 PM by  Michael Schmidt [Paessler Support] (150) 1 1



Votes:

0

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.

Created on Oct 23, 2013 1:05:05 PM



Votes:

0

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.

Created on Oct 23, 2013 1:30:44 PM by  Michael Schmidt [Paessler Support] (150) 1 1




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.