Hello,
I would like to add a Trigger Action on an advanced alert.
In fact, I would like to execute a program, a Trace Route and that doesn't work.
My command line is :
C:\WINDOWS\system32\tracert.exe -d ${NodeName} > C:\${Year}${MM}${DD}${HH}${Minute}-${NodeName}.TXT
I make a test :
22/11/2007 16:42:44: Initiating test for alert Trace Route - When a WanRouter goes Down.
22/11/2007 16:42:44: Retrieved 1 actions for alert Trace Route - When a WanRouter goes Down.
22/11/2007 16:42:44: Preparing action type ExecuteProgram to test alert Trace Route - When a WanRouter goes Down.
22/11/2007 16:42:44: Alert Trace Route - When a WanRouter goes Down: Failed - Exception Detail - File not found. "C:\WINDOWS\system32\tracert.exe -d mywanroutertest.resource.mycompany.com > C:\200711220442-mywanroutertest.resource.mycompany.com.TXT"
22/11/2007 16:42:44: Action type ExecuteProgram for alert Trace Route - When a WanRouter goes Down failed to complete successfully.
22/11/2007 16:42:44: Completed action type ExecuteProgram for alert Trace Route - When a WanRouter goes Down.
22/11/2007 16:42:44: Completed test for alert Trace Route - When a WanRouter goes Down.
Ok, there is a problem, so I add double quote " " ...
"C:\WINDOWS\system32\tracert.exe" -d ${NodeName} > C:\${Year}${MM}${DD}${HH}${Minute}-${NodeName}.TXT
I make another test...
22/11/2007 16:45:45: Initiating test for alert Trace Route - When a WanRouter goes Down.
22/11/2007 16:45:45: Retrieved 1 actions for alert Trace Route - When a WanRouter goes Down.
22/11/2007 16:45:45: Preparing action type ExecuteProgram to test alert Trace Route - When a WanRouter goes Down.
22/11/2007 16:45:45: Alert Trace Route - When a WanRouter goes Down: Success - "C:\WINDOWS\system32\tracert.exe" -d myrouter.resource.mycompany.com > C:\200711220445-myrouter.resource.mycompany.com.TXT
22/11/2007 16:45:45: Action type ExecuteProgram for alert Trace Route - When a WanRouter goes Down completed successfully.
22/11/2007 16:45:45: Completed action type ExecuteProgram for alert Trace Route - When a WanRouter goes Down.
22/11/2007 16:45:45: Completed test for alert Trace Route - When a WanRouter goes Down.
But nothing appear on C:\
(
Why ?
Thanks for your attention.