Zabbix Documentation 4.0

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:discovery:low_level_discovery:cpu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:discovery:low_level_discovery:cpu [2017/06/21 13:31]
martins-v linking to 'parent' article
manual:discovery:low_level_discovery:cpu [2018/05/18 06:27] (current)
martins-v fixing link target
Line 1: Line 1:
-==== Discovery of CPUs and CPU cores ====+==== Discovery of CPUs and CPU cores ====
  
-[[:​manual/​discovery/​low_level_discovery|Discovery]] of CPUs and CPU cores is done in a similar fashion as network interface discovery with the exception being that the discovery rule key is "system.cpu.discovery". This discovery key returns two macros - {#​CPU.NUMBER} and {#​CPU.STATUS} identifying the CPU order number and status respectively. ​To note, a clear distinction cannot be made between actual, physical processors, cores and hyperthreads. {#​CPU.STATUS} on Linux, UNIX and BSD systems returns the status of the processor, which can be either "​online"​ or "​offline"​. On Windows systems, this same macro may represent a third value - "​unknown"​ - which indicates that a processor has been detected, but no information has been collected for it yet.+In a similar way as [[:​manual/​discovery/​low_level_discovery#​configuring_low-level_discovery|file systems]] are discovered, it is possible to also discover ​CPUs and CPU cores
 + 
 +=== Item key === 
 + 
 +The item key to use in the [[:​manual/​discovery/​low_level_discovery#​discovery_rule|discovery rule]] is  
 + 
 +  ​system.cpu.discovery 
 + 
 +This item is supported since Zabbix agent 2.4. 
 +=== Supported macros === 
 + 
 +This discovery key returns two macros - {#​CPU.NUMBER} and {#​CPU.STATUS} identifying the CPU order number and status respectively. ​Note that a clear distinction cannot be made between actual, physical processors, cores and hyperthreads. {#​CPU.STATUS} on Linux, UNIX and BSD systems returns the status of the processor, which can be either "​online"​ or "​offline"​. On Windows systems, this same macro may represent a third value - "​unknown"​ - which indicates that a processor has been detected, but no information has been collected for it yet.
  
 CPU discovery relies on the agent'​s collector process to remain consistent with the data provided by the collector and save resources on obtaining the data. This has the effect of this item key not working with the test (-t) command line flag of the agent binary, which will return a NOT_SUPPORTED status and an accompanying message indicating that the collector process has not been started. CPU discovery relies on the agent'​s collector process to remain consistent with the data provided by the collector and save resources on obtaining the data. This has the effect of this item key not working with the test (-t) command line flag of the agent binary, which will return a NOT_SUPPORTED status and an accompanying message indicating that the collector process has not been started.