Hello,
I need to monitor folder for newest MP3 files, there are some other files in a folder which shall not be taken into consideration. I need alert if newest MP3 is older then 24 hours. I assume I can not use Folder Sensor since it does not allow for wildcards. Is it possible to do with PRTG?
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Thanks. It does not appear to be working properly or I misunderstand -t parameter. I run EXE with following parameters to calculate number of files which was created at most 1 day ago and it's showing that no files are there, even though there is bunch of files which were created less then 24 hours ago.
C:\Program Files\PRTG Network Monitor\Custom Sensors\EXE>NetworkFileCount.exe -f
zyxel\surveilance\video\BigRoom -s=*.mp4 -t=1440
8.0.2.1 0:No files found
C:\Program Files\PRTG Network Monitor\Custom Sensors\EXE>dir
zyxel\surveilance
\video\BigRoom\*.mp4
Volume in drive
zyxel\surveilance is surveilance
Volume Serial Number is A456-0B9F
Directory of
zyxel\surveilance\video\BigRoom
10/07/2014 08:27 AM 150,159 2_2014-10-07_08-26-12.mp4 10/07/2014 08:43 AM 142,567 2_2014-10-07_08-42-42.mp4 10/07/2014 08:25 AM 293,870 2_2014-10-07_08-24-47.mp4 10/07/2014 08:26 AM 367,750 2_2014-10-07_08-25-37.mp4 10/07/2014 08:26 AM 184,455 2_2014-10-07_08-25-21.mp4 10/07/2014 08:27 AM 204,358 2_2014-10-07_08-26-00.mp4 10/07/2014 08:33 AM 347,789 2_2014-10-07_08-32-32.mp4 10/07/2014 08:33 AM 501,147 2_2014-10-07_08-32-11.mp4 8 File(s) 2,192,095 bytes 0 Dir(s) 827,755,368,448 bytes free
Oct, 2014 - Permalink
Using -t=1440 should count files that are at least 1440 minutes old.
Using -t=1440 in combination with the -tiw switch should count files that are created between now and 1440 minutes ago.
If you run into any further problems, please let me know at support@prtgtoolsfamily.com
Oct, 2014 - Permalink
Is it possible to put sensor in Down state if value of result is say less then 1?
Oct, 2014 - Permalink
Yes, you can do this in the sensor channel settings page by enabling limits and setting the lower error limit to 1
See also: https://www.paessler.com/manuals/prtg/sensor_channels_settings
Oct, 2014 - Permalink
Hi,
This would be possible with Custom Sensor PTF.NetworkFileCount
This Custom Sensor returns the number of files available on a server\share. As your PRTG server runs under the local system account it can't access files on a
server\share. This sensor uses the given username and password of a valid user account that can access the files and returns the number of files.
Parameters:
The sensor can be downloaded from http://prtgtoolsfamily.com/?page=downloads_sensors
Oct, 2014 - Permalink