Send a TraceRoute from your Polling Engines as Alert Action

Version 1

    This has been a handy tool to help capture a trace during high latency events. This will trigger as an alert action, and send a captured trace route by email from your polling engines.

     

    This requires PSExec on the primary engine. I also had to set up the Alert Service on Orion to use a service account so that it could execute scripts on the remote pollers. Details below:

     

    1) Drop PSExec on the primary engine

    2) Edit the script, update line 24[emailFrom], line 30[smtpserver]

    3) Drop the script into the same path on each polling engine

    4) As an alert action, select "Execute Program"

    5) Define the path based on how you deployed the script and PSExec, for example: c:\PSTools\PsExec.exe \\${SQL:SELECT IP From Engines e JOIN Nodes n ON e.EngineID=n.EngineID WHERE n.NodeID = ${NodeID}} cscript.exe c:\orionscripts\TraceRoute\traceRoute.vbs "${IP}" "${Caption}" "${Status}" "user1@123.net,user2@123.net" "${SQL:SELECT IP From Engines e JOIN Nodes n ON e.EngineID=n.EngineID WHERE n.NodeID = ${NodeID}}"

    Note: "${SQL:SELECT IP From Engines e JOIN Nodes n ON e.EngineID=n.EngineID WHERE n.NodeID = ${NodeID}}" will pull the polling engine's IP Address. This is needed to designate the server where the script will be run, and is included in the message so that folks can know from where the trace ran.

    6) Configure the SolarWinds Alert Service to use a service account with permissions on the remote polling engines.