What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How to set sensor to down on http numeric result

Votes:

0

Via a PHP script I check to see if replication between 2 MySQL servers is running. If it is not, I return a value of 1.

I can add a notification for value change, but I cannot set the sensor to down. As such, the notification options I have are limited. I have no escalation options for example.

Is there any way I can set a sensor to down?

Hmm.. Maybe return a http 500? Let's see...

Jup that works :)

So: If you write custom scripts to check if something is wrong and rely on numeric results, throw the error to down by changing the http header. That will change the state of the trigger and gives you the option to use the more advanced notification options.

down escalation sensor

Created on Oct 12, 2011 1:04:38 PM



2 Replies

Votes:

0

Dear Thomas,

when checking numerical results, you can also use the Error/Warning-Limits in its Channel Settings to change a sensors state according to its result.

best regards.

Created on Oct 12, 2011 6:48:59 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Hi Thomas,

Apart from setting limits in the Channels tab, it is also possible to have your script return an exit code to PRTG that sets the sensor into an error (or warning) state.

See the /api.htm page of your PRTG server for more details.

Regards,

Created on Oct 12, 2011 7:04:10 PM




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.