i found a wmi ping script that i tailored a bit for me and it appears to work correctly from the command line but when added to APM it doesnt seem to work right.
here is what i did.
add a node to orion (node A). it can ping one of two addresses in question by design
apm/orion server can ping both addresses by design.
from the apm server i run the ping script below with both IPs. it succeeds on one and fails on the other (as expected since it is remotely executing on node A). right?
i confirm apm/orion can ping both natively. i confirm node A can only ping one of them natively.
i then add both scripts as a component in orion/apm and add them to node A (which is the iP listed in the script as strComputer).
both are showing green. i would expect one to show down. am i doing something wrong?
script ------
strComputer = "172.22.127.183"
Set objWMIService = GetObject(_
"winmgmts:\\" & strComputer & "\root\cimv2")
Set colPings = objWMIService.ExecQuery _
("Select * From Win32_PingStatus where Address = '10.159.99.20'")
For Each objStatus in colPings
If IsNull(objStatus.StatusCode) _
or objStatus.StatusCode<>0 Then
WScript.Echo "Statistic: 1 "
Else
Wscript.Echo "Statistic: 0 "
End If
Next
script end -----
thanks
scott