GET Comments / Custom attributes from Nodes OR Containers

Started by jhonnyvey, May 30, 2016, 09:17:51 PM

Previous topic - Next topic

jhonnyvey

Hi all,

It's possible set comments on nodes or in containers and then make reading these comments for sending alerts?
The same thing to custom attributes.

Below a exemple of alerts we send:

Server: %n \\n
IP: %a \\n
Data: %t \\n
Event: %<dciDescription> \\n
Current Value: %<currentValue> \\n
Threshold: %<thresholdValue>

tomaskir

Why not use custom attributes for this?

https://wiki.netxms.org/wiki/NXSL_Function_Reference
SetCustomAttribute(...) and GetCustomAttribute(...) functions can be used.

jhonnyvey

Hi tomaskir,
Tks again for reply.

I used custom attribute. Created with name "Farm"
In action configuration add:  Farm: %{farm}

https://wiki.netxms.org/wiki/UM:Event_Processing

tomaskir

If the name of custom attribute is "Farm", then you need to use "%{Farm}".
I believe its case sensitive.