184
edits
Tomas Kirnak (talk | contribs) |
Tomas Kirnak (talk | contribs) (Changes relating to issue #690) |
||
Line 461: | Line 461: | ||
| Agent Table || Table name || Read table from agent and use it's instance column 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 | | SNMP Walk - Values || Base OID || Do SNMP walk starting from given OID and use the values of returned varbinds as {instance}. | ||
|- | |- | ||
| SNMP Walk - OIDs || Base OID || Do SNMP walk starting from given OID and use | | SNMP Walk - OIDs || Base OID || Do SNMP walk starting from given OID and use the OID suffixes of returned varbinds as {instance}.<br>The value of the returned varbinds is used as {instance-name}. | ||
|} | |} | ||
== Using "SNMP Walk - OIDs" == | |||
If using "SNMP Walk - OIDs" as the discovery method: | |||
OID suffix of discovered instances will be automatically returned as {instance}.<br> | |||
Value of discovered OIDs will be automatically returned as {instance-name}. | |||
This allows for example to set instance discovery for interfaces using ifDescr as base - then {instance} will resolve to interface index and {instance-name} to interface description. | |||
== Instance Filter == | == 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), or FALSE (to reject instance). | 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), or FALSE (to reject instance). | ||
If you wish to change the instance-name, instead of TRUE, you can return an array of three elements - first is TRUE, 2nd is {instance} value, and 3rd is the new value for {instance-name}.<br> | If you wish to change the instance-name, instead of TRUE, you can return an array of three elements - first is TRUE, 2nd is {instance} value, and 3rd is the new value for {instance-name}.<br> | ||
Example: %(true, $1, "name") | Example: %(true, $1, "name") | ||
If using "SNMP Walk - OIDs" as the discovery method: | |||
Please not that the {instance} will be passed to the filtering script as $1.<br> | |||
The {instance-name} will be passed to the script as $2. | |||
= Working with collected data = | = Working with collected data = |
edits