It would be awesome to allow us to send the credentials that the template or node has with a script.
(inherit credentials from node or inherit credentials from template)
my example is: I'm monitoring an event log for key works indicating that net.tcp service is hung. I also monitor the service for up/down.
Per this thread and aLTeReGo, I am able to use the below in field to execute script and this works great for down -> need to restart...
APM\APMServiceControl.exe ${N=SwisEntity;M=ComponentAlert.ComponentID}
and it works like a champ...
BUT....what if it hangs and still shows running...
I see this and use some key phrases in event logs to detect...but alas, that check has a different componentID so the above won't work.