Help with $node->platform in Automatic Apply Rules (template) script ?
-
Hi,
I do have some Templates with DCIs that I wish to monitor on some nodes that has NetXMS agent installed.
I have simple script that will automatically apply templates to nodes who has NetXMS Agent installed, my current script inside Template - Automatic Apply Rules is:sub main() { return $node->isAgent; }This script works and solves the problem.
However, I can not find proper documentation for $node object and its attributes / methods.
I need to write different script for my different template which will check if $node - platform name, contains string "windows" then to automatically apply different template.Please help me with simple if expression, contains (or RegExp) and how to get platform name from $node object ?
Thank you
-
Description of node class is here: http://wiki.netxms.org/wiki/NXSL:Node and all scripting reference information is here: http://wiki.netxms.org/wiki/Scripting_Guide
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login