Custom Script sensor error

Votes:

0

Your Vote:

Up

Down

I have a PHP script that does a query on a slave mysql database. The script has an output of either 1(its working) or 0(its not). How ever when I have the batch file kick it off I see a "Last Message" of "Response not wellformed: "1 "" I am not sure why it says not well formed, the result will be either a 0 or 1, and it sees the "1" in there".

My Batch file is: @echo off c:\progra2\PHP\php.exe -f c:\check.php exit 1

Is there something else i'm missing?

Thanks!

custom-sensor mysql php

Created on Feb 6, 2012 7:03:44 PM by  Rick Elder (0) 1



2 Replies

Accepted Answer

Votes:

0

Your Vote:

Up

Down

Hi,
please try adding for example a ":ok" to your output, which is delivered back to PRTG. The responses have to be the following format: value:message Best regards

Created on Feb 7, 2012 2:21:35 PM by  Konstantin Wolff [Paessler Support] (461) 2 1



Votes:

0

Your Vote:

Up

Down

I noticed that about 10 minutes after I submitted the question. I was looking over those other scripts and saw the ":OK" in them. So gave it a try.

Thanks!

Created on Feb 7, 2012 5:53:42 PM by  Rick Elder (0) 1



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.

PRTG
Network Monitor
Intuitive to Use.
Easy to manage.

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

Visit
www.paessler.com

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

Top Tags


View all Tags