AutoPatrol, Bureaucrats, Administrators
683
edits
m |
|||
Line 389: | Line 389: | ||
Please note that if you change something in the node, name for example, these changes will not be reflected automatically in DCI texts generated from macros. However, they will be updated if you reapply template to the node. | Please note that if you change something in the node, name for example, these changes will not be reflected automatically in DCI texts generated from macros. However, they will be updated if you reapply template to the node. | ||
= 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. | |||
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. | |||
== Discovery Methods == | |||
There are different methods for instance discovery: | |||
{| class="wikitable" | |||
|- | |||
! Method !! Input Data !! Description | |||
|- | |||
| Agent List || List name || Read list from agent and use it's values as instance names. | |||
|- | |||
| Agent Table || Table name || Read table from agent and use it's instance column values as instance names. | |||
|- | |||
| SNMP Walk - Values || Base OID || Do SNMP walk starting from given OID and use values of returned varbinds as instance names. | |||
|- | |||
| SNMP Walk - OIDs || Base OID || Do SNMP walk starting from given OID and use IDs of returned varbinds as instance names. | |||
|} | |||
== Instance Filter == | |||
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 = |