What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Running a custom Sensor fails

Votes:

0

Your Vote:

Up

Down

I have created a Custom sensor as VB-Skript. It checks the modification date of a logfile on a remote systems and returns the message "OK" or "WARNING" with the following code:

IF a > b then
    wscript.echo "Warning"
    wscript.quit("1")
else
    wscript.echo "OK"
    wscript.quit("0")
endif

To access the logfile I use the following method:
Servername\c$\path\filename.ext

When I run the script directly it works fine. When I try to run it via PRTG it gives back the following message: Response not wellformed: "C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\checkSyncServiceLog.vbs(35, 1) Microsoft VBScript runtime error: File not found "

and the sensor is set to error.

What is wrong?

custom-sensor response-time vbscript

Created on Sep 21, 2011 9:09:40 AM by  Gerd Fassauer (0) 1

Last change on Sep 21, 2011 12:41:36 PM by  Torsten Lindner [Paessler Support]



1 Reply

Votes:

0

Your Vote:

Up

Down

Hello,

most likely the PRTG Probe does not fine the file, as suggested by the error message. This can be an permissions issue, if the Probe Service does still run under the "LOCAL SYSTEM"-account which it does by default. You could then try running the Probe Service under an (domain) admins account.

best regards.

Created on Sep 21, 2011 12:43:02 PM by  Torsten Lindner [Paessler Support]



Please log in or register to enter your reply.


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.