When i try to add Windows Scheduled Task sensor to a server running w2008 R2 i receive this error message: Timeout (5000 ms)

I've checked the resources suggested by PRTG:

•Requires .NET 4.0 or higher to be installed on the probe system. Note: If the sensor shows the error PE087, please additionally install .NET 3.5 on the probe system. -----> OK

•Requires the Remote Registry Windows service to be running on both the probe and the target system. ----> OK

•Requires Windows credentials in the parent device settings. -----> OK

In fact i've installed previously this sensor in other servers (also running 2008 R2) with no issues.

Any suggestion?

Thanks in advance.


Article Comments

Hello,

Please manually execute the sensor from the command line and see if it works. The sensor is located in the directory "C:\Program Files (x86)\PRTG Network Monitor\Sensor System" and named "ScheduledTask.exe". It will require the parameters

ScheduledTask.exe -c=IPaddress -t=NameOfTheTask

Which results do you receive?

Best regards, Felix


Nov, 2015 - Permalink

Hello Felix,

I've executed the sensor manually getting this result:

C:\Program Files (x86)\PRTG Network Monitor\Sensor System>ScheduledTask -c=xxx.xxx.xxx.xx -t=xxxxxxxxxxxxxx

Check if Remote Registry Service is running.

Remote Registry Service is running.

Determine local OS major version... 6

Determine remote OS major version... 6

Using Scheduled Task V2

213:Last run 213 minutes ago.

Regards.


Nov, 2015 - Permalink

Hi cmagana,

The error message indicates that the initial sensor creation time limit of 5 seconds was exceeded. I'm afraid that this is hard coded, but there will be a workaround:

Copy the executable into the sensor directory of PRTG:

C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXE

Create an Exe/ Script Sensor and pass the parameters

-c=IPaddress -t=NameOfTheTask

This will return the passed days since the last execution and will bypass the time limit issue while creating the sensor.

Best regards, Felix


Important note: The Windows Scheduled Task sensor is deprecated as of PRTG version 16.1.23.

Please see the following article for more details and possible alternatives:


Dec, 2015 - Permalink