Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

File Count Warning via Report?

Hey everyone,

as a new user of the fabulous PDQ Deploy & Inventory i need some help with a request in our company.

We need to monitor a folder to react in time if the files in there are not automatically processed. Is it possible to do this job by a report that automatically checks the folder every 60 minutes. The report should send me a mail if there are XX files that are older than maybe 1 hr.

Thanks in advance

Pascal

0

Comments

2 comments
Date Votes
  • You may be able to do it with PDQ Deploy (scheduled deployment/once every hour) and PowerShell.

     #Current timestamp minus hour
     $Check_Time = (Get-Date).AddHours(-1)   
     
     #Not sure how you define "processed", I just use "LastWriteTime" as example. 
     $Check_Files = Get-ChildItem -Path "Your_Folder" -Recurse | Where-Object {($_.LastWriteTime) -lt $Check_Time}
     
     #If all the files are "processed", nothing happens, else send out an email.
     If ($Check_Files -eq $null) {
    
     Write-Output "All files are processed"
    
    }
    
    else {
    
    Send-MailMessage 
    
    }
    

    This task is really for monitoring solutions like PRTG (if you run less than 100 sensors, it's free) or nagios.

    https://www.paessler.com/manuals/prtg/file_sensor https://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/File-Age-Check/details

    0
  • Thanks a lot! I will have a look at this 😃

    0