After you create a procedure, you must run it using the EXECUTE PROCEDURE command for the actions in the procedure to occur. You can do this using the SQL interactive interface (nco_sql) or in a trigger or procedure.
{ EXECUTE | CALL } [ PROCEDURE ] procedure_name
[ ( expression,... ) | ( [ expression, expression,... ] ,... ) ];
Use procedure_name to specify the procedure to run.
Each of the expressions passed as actual parameters must resolve to an assignable value that matches the type of the parameter specified when the procedure was created.
To run the procedure described in CREATE PROCEDURE (external procedures), use the following call in a trigger:
execute send_email( critical.Node, critical.Severity, 'Netcool E-mail',
'root@localhost', critical.Summary, 'localhost');