New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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


How to set sensor to down on http numeric result

Votes:

0

Your Vote:

Up

Down

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 by  Megamuch (60) 1 1



2 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  PRTG Tools Family [prtgtoolsfamily.com] (12,885) 3 4



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.