I am trying to combine the HttpLogin.vbs (from C:\Program Files\Solarwinds\Orion\APM\SampleScriptMonitors\WindowsScripts) with the Run 3rd-party Applications template (from ). I believe I can use these two things together to monitor a website from a remote computer and have the results in APM. I have the HttpLogin.vbs all setup and working. If I manually execute it on the remote computer, it runs perfectly. Now I want to use the Run 3rd-party Applications template to run this HttpLogin.vbs on the remote computer from the Orion server.
In the following examples:
remoteexec.vbs = the code in the Run 3rd-party Applications template copied to a separate vbs file for testing.
server1 = remote server with the HttpLogin.vbs script in C:\webcheck.
HttpLogin.vbs = customized version of default HttpLogin.vbs included with APM to test a website.
When I run the following command on the Orion server, I get the following error:
cscript /nologo remoteexec.vbs server1 "cscript \\server1\c$\webcheck\HttpLogin.vbs" \\server1\c$\webcheck\ username password
Message: Error code on execution 8 Unknown failure
Statistic: 8
I have tried several different variations of this command with different results. But it never works. Here are some other examples and the errors I get:
cscript /nologo remoteexec.vbs server1 "cscript C:\webcheck\HttpLogin.vbs" C:\webcheck\ username password
Message: Error code on execution 9 Path not found
Statistic: 9
cscript /nologo remoteexec.vbs server1 "cscript C:\webcheck\HttpLogin.vbs" C:\webcheck username password
Message: Error code on execution 2 Access denied
Statistic: 2
Again, if I RDP to server1 and run HttpLogin.vbs, it works great (it finds the string and completes successfully). It’s just calling the HttpLogin.vbs from within the other vbscript in the Run 3rd-party Applications template that I have problems.
Has anyone gotten this to work? Has anyone else come up with other ways to monitor websites from remote locations (not from the Orion server itself) with the HttpLogin.vbs or other means in APM?