I have a need to monitor a specific url on 4 servers. The site is not IP reachable due to host headers so the default ip variable will not work. Each site has a second host header for the server configured that is name specific and that is how I want to be able to identify the servers individually. My question is how do I import my IIS script and have solar winds append the node name as a variable. Right now I can get it to work for one server but I need it to run against 4 individual servers. I tried using argument localhost, but it liternally puts that in the url for the computer name. I don't have issues writing the vbs code. I know need to know how to tie it into solarwinds so I can make the url test more universal based off the node name being injected as arg0 for each assigned server node.
Steps so far.
Created custom script template and imported the script. I used the succed and fail constants, which seem required. It works fine if I set a server name as arg(0) in the template for arguments. Problem is I don't want to hard code it and am looking for a way for the template to import the assigned node name as an arguement each time it runs. Also this is only good for one server.