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
Article Comments
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
Aug, 2011 - Permalink
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
Aug, 2011 - Permalink
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
Aug, 2011 - Permalink
Dear Oscar,
I'm sorry but this is not possible.
best regards.
Aug, 2011 - Permalink