I save the script below as a BAT file in "EXE" folder of probe, and then I setup EXE/SCRIPT sensor. Why it is still return "OK"? Thanks.
IF "2" EQU "2" ( ECHO 2:ERROR EXIT /b 2 ) ELSE ( ECHO 0:OK EXIT /b 0 )
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Hi,
please try removing the /b flag from your exit statements and then recreate the sensor for testing.
Now it should exit properly.
Best regards
Aug, 2013 - Permalink