Is there a way to retrieve the "Comments" property of a DCIObject?
Essentially I'd like to add some support information to the comments section of a DCI, that is also then included in emails that are generated for alerts against that DCI.
As a test I tried the following:-
However it errors on the comments attribute line, and certainly the https://wiki.netxms.org/wiki/NXSL:DCI page does not list a "comments" attribute (but there is one on the node object https://wiki.netxms.org/wiki/NXSL:Node)
I've had a look through the script reference pages, but I can't see any functions to enable me to query it - does anyone know of a way to do so?
Otherwise I guess I would need to use a custom attribute.
Simon
Essentially I'd like to add some support information to the comments section of a DCI, that is also then included in emails that are generated for alerts against that DCI.
As a test I tried the following:-
Code Select
sub main() {
node = FindObject("SomeNode");
dciID = FindDCIByName(node, "SomeDCIName");
dciObj = GetDCIObject(node, dciID);
println(dciObj->name);
println(dciObj->comments);
}However it errors on the comments attribute line, and certainly the https://wiki.netxms.org/wiki/NXSL:DCI page does not list a "comments" attribute (but there is one on the node object https://wiki.netxms.org/wiki/NXSL:Node)
I've had a look through the script reference pages, but I can't see any functions to enable me to query it - does anyone know of a way to do so?
Otherwise I guess I would need to use a custom attribute.
Simon