Object Container Name in Alarm Message?

Started by twparker, April 23, 2025, 09:53:19 PM

Previous topic - Next topic

twparker

Hello all,

I would like to add the container name of a node to an alarm message, but I am not quite sure how to go about it. Any suggestions?

twparker

Thanks, Amay. I tried using the Script Library method, but the message is not displaying anything before the node macro.

%[GetContainerName]%n is unresponsive - %a

UVC G3Ext 2 is unresponsive - 10.1.110.166

Victor Kirhenshtein

For version 5.x script GetContainerName could look like this:

for(p : $object.parents)
  if (classof(p) == "Container")
      return p.name;
return "";

twparker