Environment: Windows 2008r2 Servers SAM 6.3.0
Currently I have a server-side javascript which watches for files in specific directory, looks for filenames with a specific string at the front (XYZ_). If File Found the script looks into the file, notes a character string that indicates ABC error or EFG error. Then it returns the name of the file and returns the indicated error. The javascript bundles each one in an email and sends it to the admins, one file per email.
Is it possible to write & execute a VBScript doing the same thing from the "Execute an External VB Script" of the Trigger level of an Alert?
As it stands, when a file with XYZ_ tacked to the front of the filename shows in that directory the admin staff each gets an email from SolarWinds. But it tells us nothing about the file - name or error - it just tells us it exists.
So is this a good place to set up this script? Will it execute and can it send out email from this level?