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

Sensor value

Votes:

0

Hello,

Could you please say, is it possible to create Sensor which will return "1" - if sensor status is down, and "0" - if sensor status is up? As example: Sensor check file on X drive, if file not exist, then value of Sensor will be "1"; If file exist, then it return "0"; or Sensor check web site for string, if string not found, sensor return value "1"; if string found then sensor return "0";

Thanks in advance!

Best regard, Oscar

custom-sensor sensor sensor-factory

Created on Aug 1, 2011 8:33:23 AM

Last change on Aug 2, 2011 12:28:22 PM by  Torsten Lindner [Paessler Support]



Best Answer

Accepted Answer

Votes:

0

Go to the sensors channels tab and enable limits. Next you can set the limits for warning and error status.

In your case set the "upper error limit" to 0

Created on Aug 2, 2011 12:07:32 PM



4 Replies

Votes:

0

Dear Oscar,

I'm sorry but this is not possible.

best regards.

Created on Aug 1, 2011 1:41:59 PM by  Torsten Lindner [Paessler Support]



Votes:

0

The status of a sensor usually depends on the return value, not the other way around. But there are things that can be done with a Custom Sensor.

For example the existence of a file can be checked with a simple batch file sensor that returns "1" if the file does not exist:

@echo off
if exist %1% goto exists
echo 1:File does not exist
goto end
:exists
echo 0:File exists
:end

Created on Aug 1, 2011 1:54:52 PM



Votes:

0

Hello,

As I understand notification can be setup if value of received sensor is more than "x" But if I will get those values using batch script "0" or "1", is it possible to create alarm/trigger only if value "1" (down) is received? and alarm/trigger off if "0" value received?

Thank you!

Best regards, Oscar

Created on Aug 2, 2011 8:09:25 AM



Accepted Answer

Votes:

0

Go to the sensors channels tab and enable limits. Next you can set the limits for warning and error status.

In your case set the "upper error limit" to 0

Created on Aug 2, 2011 12:07:32 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.