Dear,

In order to monitor the state of the Scheduled Tasks from different servers we need to implement a custom check based on a PowerShell script. Reading the official documentation, the PS script need to be copied to the PROB server first: "This list shows all files available in the corresponding \Custom Sensors\EXEXML sub-directory of the probe system's PRTG program directory (see Data Storage ). To appear in this list, please store the files into this folder ending in BAT, CMD, DLL, EXE, PS1, or VBS."

Source: https://www.paessler.com/manuals/prtg/exe_script_advanced_sensor

We would like to have a detailed configuration and explanation how to set it up because we do not manage the server probe. We need to communicate the exact steps to our partner.

Is the script useful from URL https://mycloudrevolution.com/2016/09/15/prtg-advanced-scheduled-task-sensor/ (PRTG-ScheduledTask.ps1)

Thx in advanced


Article Comments

Hi Sebastien

First, what do you want to check with the scheduled task sensor? last Run and last run result i assume? Thats exactly what the "PRTG-ScheduledTask.ps1" from the link you provided does.

So the script needs to be on the PROBE server which monitors YOUR enviroment (if you have agents, only there and not on the main server/probe). Usually in the folder: C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML

After you copied it there, you can create a new sensor on the device you want to monitor for Tasks. A new "EXE/script Advanced" sensor, choose the PS1 script you copied there in the step above and follow the manual (https://mycloudrevolution.com/2016/09/15/prtg-advanced-scheduled-task-sensor/) you provided in your question.

regards Thomas


Sep, 2019 - Permalink