Sensor value

Votes:

0

Your Vote:

Up

Down

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 by  Oscar (0) 1

Last change on Aug 2, 2011 12:28:22 PM by  Torsten Lindner [Paessler Support] (19,480) 3 1



Best Answer

Accepted Answer

Votes:

0

Your Vote:

Up

Down

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 by  PRTGToolsFamily (5,544) 3 2



4 Replies

Votes:

0

Your Vote:

Up

Down

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] (19,480) 3 1



Votes:

0

Your Vote:

Up

Down

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 by  PRTGToolsFamily (5,544) 3 2



Votes:

0

Your Vote:

Up

Down

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 by  Oscar (0) 1



Accepted Answer

Votes:

0

Your Vote:

Up

Down

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 by  PRTGToolsFamily (5,544) 3 2



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