So i have an alert set for for a vbscript that calls a javascript file and i cannot get this to run...
My VB script: filename test.vbs
strProgramPath = "C:\ScriptAlerts\test.js"
set objShell = createobject("Wscript.Shell")
objShell.Run strProgramPath
My Java script: filename is test.js
WScript.Echo("Test");
This odd combination works fine with i click the vbscript (which solarwinds calls for the alert) but i never see the message box when solarwinds triggers the alert. I have looked under the dbo.alertlog table and it says it was successful at running the vbscript. Obviously, I am going to expand on this... I already have a different Javascript file wrote which logs onto a linux machine and starts a script running on it. My goal is to automatically start applications and scripts when one of them goes down. Any suggestions? Thanks in advance.