On this page
9 Ontdekking van Windows-prestatiemeterinstanties
Overzicht
Het is mogelijk om instanties van Windows-prestatietellers te ontdekken. Dit is handig voor prestatietellers met meerdere instanties.
Item-sleutel
Het item dat moet worden gebruikt in de ontdekkingsregel is
perf_instance.discovery[object]
of, om de objectnaam alleen in het Engels te kunnen opgeven, onafhankelijk van de lokale instellingen van het besturingssysteem:
perf_instance_en.discovery[object]
Bijvoorbeeld:
perf_instance.discovery[Processor]
perf_instance_en.discovery[Processor]
Deze items worden ondersteund sinds Zabbix Windows Agent 5.0.1.
Supported macros
The discovery will return all instances of the specified object in the {#INSTANCE} macro, which may be used in the prototypes of perf_count and perf_count_en items.
[
{"{#INSTANCE}":"0"},
{"{#INSTANCE}":"1"},
{"{#INSTANCE}":"_Total"}
]
For example, if the item key used in the discovery rule is:
perf_instance.discovery[Processor]
you may create an item prototype:
perf_counter["\Processor({#INSTANCE})\% Processor Time"]
Notes:
- If the specified object is not found or does not support variable instances then the discovery item will become NOTSUPPORTED.
- If the specified object supports variable instances, but currently does not have any instances, then an empty JSON array will be returned.
- In case of duplicate instances they will be skipped.