January 2019
Intermediate to advanced
798 pages
20h 33m
English
Yet another discovery method supported by the Zabbix agent is CPU discovery. It returns all CPUs (or cores) present on a system. Now that we know how to get the LLD JSON, we only need to know which item key is used to return CPU information—that's system.cpu.discovery. Run this on A test host:
$ zabbix_get -s 127.0.0.1 -k system.cpu.discovery | json_pp
For a single-core system, it will return this:
{
data : [
{
{#CPU.NUMBER} : 0,
{#CPU.STATUS} : online
}
]
}
The CPU discovery returns two macros for each discovered CPU:
This can be used to monitor various states on individual CPUs and cores. ...
Read now
Unlock full access