Hello folks,
I’m trying to send a message from a script block in an alarm notification pipeline. The goal here is to send that message to a local gateway from a remote gateway, to process it in a special way.
I need to keep the pipeline on the remote gateway, because that’s where the mail server is configured.
It works just fine from the script console, but not from the pipeline.
I tried logging before and after the call to system.util.sendMessage
, I get the first log entry, but not the second. No error is logged, whether I try to catch and log it myself or not.
The call itself is basic:
system.util.sendMessage(
project="field_project",
messageHandler="alarm_handler",
payload={'message': message},
scope="CGS", # 'G' should be enough, but just to make sure...
remoteServers=["field_gateway"]
)
What am I missing ?