There is not any good way to do this with out getting a little crazy… so get crazy!
From a syslog execute you could easily execute an external, that external is a batch job and could just write some values to another batch job. Then your probe(s) could execute the 2nd batch and return the values written from the first batch job.
Someone once wanted to play a sound then stop the sound when the device came back up. What you are trying would be somewhat similar. http://forum.mikrotik.com/t/need-help-with-ping-and-beep-notification/41118/1
From a batch job you can easily do things like
echo “echo 1” > log1.bat which will create a new file called log1.txt wtih echo 1 in it.
echo “echo 2” >> log1.bat which will append echo 2 to a new line in the same file.
Then if you executed log1.bat the values 1 and 2 would each appear on their own lines. That is not exactly what you want.
I would just make the first batch job write a new value to a new file every time then when you execute that batch job you could just import the first result to get a state for your probe to test.
shouldn’t be that hard.
Here is some typing at a command prompt…
C:>echo @echo off > test.bat
C:>echo echo 3 >> test.bat
C:>test.bat
3
HTH,
Lebowski