Hello everyone,
I'm stuck and I'm not sure what to do next. First the disclaimer, I am NOT a programmer, so the majority of my code was inherited by a lot of you in the community or in the Google universe.
Objective:
Embed output from a batch file into an email alert action. The output is ping and tracert results from the poller to the device.
Trigger Actions - Configuration Settings:
1st trigger is Execute An External Program:
Network path to external program = c:\Scripts\Ping-TraceRT.bat ${IP_Address} ${NodeName} -alert=${N=Alerting;M=AlertDefID} -alertId=${N=Alerting;M=AlertID} -${N=Alerting;M=Notes}
I'm receiving the expected output (ping and tracert) results in the text file.
2nd trigger is Send An Email/Page:
Message body:
Device Name: ${NodeName}
IP Address: ${N=SwisEntity;M=IP_Address}
Status: ${N=SwisEntity;M=Status}
Group: ${N=SwisEntity;M=CustomProperties.Assignment_Group}
Priority: ${N=SwisEntity;M=CustomProperties.Priority}
Date: ${DateTime}
Polling Engine: ${N=SwisEntity;M=Engine.DisplayName}
Ping & Tracert Information:
${N=Alerting;M=Notes}
The email doesn't contain any of the expected output from the batch file. My first thought is that I'm missing something in script, but I'm not sure what that is and I'm not sure how I would code it.
Attached is the batch file I'm using.
[View:/cfs-file/__key/communityserver-discussions-components-files/47/Ping_2D00_TraceRT.bat:640:480]