Difference between revisions of "UM:Data Collection"

Jump to navigation Jump to search
18 bytes removed ,  23:12, 10 March 2013
Line 392: Line 392:
= Instance Discovery =
= Instance Discovery =


Sometimes there is situation when you have to monitor multiple instances of some entity, with exact names and number of instances not known or different from node to node. Typical example is file systems or network interfaces. To automate creation of DCIs for each instance you can use instance discovery mechanism.
Sometimes you may need to monitor multiple instances of some entity, with exact names and number of instances not known or different from node to node. Typical example is file systems or network interfaces. To automate creation of DCIs for each instance you can use instance discovery mechanism.
First you have to create "master" DCI. Create DCI as usual, but in places where normally you would put instance name, use special macros {instance}. Then, go to "Instance Discovery" tab in DCI properties, and configure instance discovery method and optionally filter script.
First you have to create "master" DCI. Create DCI as usual, but in places where normally you would put instance name, use the special macro {instance}. Then, go to "Instance Discovery" tab in DCI properties, and configure instance discovery method and optionally filter script.


== Discovery Methods ==
== Discovery Methods ==
Line 415: Line 415:


You can optionally filter out unneeded instances and transform instance names using filtering script written in NXSL. Script will be called for each instance and can return TRUE (to accept instance), FALSE (to reject instance), and array of two elements - first is TRUE and second is new value for instance name.
You can optionally filter out unneeded instances and transform instance names using filtering script written in NXSL. Script will be called for each instance and can return TRUE (to accept instance), FALSE (to reject instance), and array of two elements - first is TRUE and second is new value for instance name.


= Working with collected data =
= Working with collected data =
AutoPatrol
191

edits

Navigation menu