Starting Script for Interface from Managementconsole

Started by gkaudewitz, January 15, 2013, 10:40:57 PM

Previous topic - Next topic

gkaudewitz

hello together,

is there a way to start a netxms script at the management console for a specific interface of a node where node and Interfacedata are passed to.
Somthing like Your builtin DCI-Creation for an interface a little bit more flexible and expandable e.g. generating a set set of DCIs for that interface or node controlled by a self written script.

Best regards

Georg

B.T.W.: Is there just a possibility to create a DCI with it's parameters via script?

Victor Kirhenshtein

Hi!

Both is not possible - you cannot run script on node, and you cannot create DCI from script. Idea is good, I'll add feature request for that (#219, #220).

Best regards,
Victor

SKYnv

Quote from: Victor Kirhenshtein on January 16, 2013, 06:20:32 PM
Hi!

Both is not possible - you cannot run script on node, and you cannot create DCI from script. Idea is good, I'll add feature request for that (#219, #220).

Best regards,
Victor

Victor it possible with templates and autobind scripts for them.

Victor Kirhenshtein

It's not exactly the same - using templates you cannot create DCIs depending on node capabilities (for example, enumerate all interfaces and create DCI for each interface).

Best regards,
Victor

gkaudewitz

Implementing this feature for interfaces DCI-Class should be expanded by several DCI-Properties you can access by GUI like defining delta calculation, transformscript, performance Tab Attributes, thresholds and custom sceduled polls.
Best regards
Georg

sperlm

Not sure if I understood the OP post well so I will just comment on what I achieved with automated creation of DCIs.

I have got a script that scans all possible ports for a node and then creates DCIs with predefined OIDs. Not a script I am proud of but it works somehow...
Basically I can mass-create DCIs if I manually state what sort of base OIDs to use and what types to include. Could expand this to automatically select base OIDs based on device OID.

If I add this to automatic applied scripts it should be possible to create DCIs based on device type.

I mean - creating DCI from script with CreateDCI function is working... so I am just wondering what was the request in the OP and why the statement "you cannot create DCI from script" ?

With regards,

Milan Sperl