Executing Windows Script within Watch

I have a .vbs script that I should like to incorporate as part of a watch, with the alert triggered when the errorlevel exceeds a defined threshold.

Is it possible to execute script files in this fashion, or should I be looking to re-engineer any pre-existing checks scripted like this?

Watcher can't execute system scripts. All scripts in Elasticsearch run in a sandboxed environment. There are two provided languages, only one of which (painless) will work within a watcher script. You'll need to rewrite your vbs script in painless if you want to execute it from a watch.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.