We are using VM machines. RedHat Linux and we recently added 2 virtual CPU's but Zabbix does not discover them automatically.
With lscpu i can see them:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 4
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 26
Model name: Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz
But Zabbix still only sees 2 CPU. What is blocking this discovery
lsrv0008 STD_CIV CPU (2 Items)
CPU Info 2018-02-08 06:51:48 processor 1: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz History
CPU Info 2018-02-08 06:51:47 processor 0: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz History
zabbix_get indeed says there are two:
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s lsrv0008.linux.rabobank.nl -p 10050 -k system.cpu.discovery
{"data":[{"{#CPU.NUMBER}":0,"{#CPU.STATUS}":"online"},{" {#C PU.NUMBER}":1,"{#CPU.STATUS}":"online"}]}
But if i test system.hw.cpu i get results for 4 (5th is indeed not present)...
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[0]
processor 0: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[1]
processor 1: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[2]
processor 2: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[3]
processor 3: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[4]
ZBX_NOTSUPPORTED: Cannot obtain CPU information.
Is it the agent version perhaps?
[Thu Feb 08 07:03:21 waarddd@lsrv0008:~ ] $ /usr/sbin/zabbix_agentd -V
zabbix_agentd (daemon) (Zabbix) 3.2.1
Revision 62890 30 September 2016, compilation time: Oct 3 2016 05:01:06
With lscpu i can see them:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 4
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 26
Model name: Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz
But Zabbix still only sees 2 CPU. What is blocking this discovery
lsrv0008 STD_CIV CPU (2 Items)
CPU Info 2018-02-08 06:51:48 processor 1: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz History
CPU Info 2018-02-08 06:51:47 processor 0: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz History
zabbix_get indeed says there are two:
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s lsrv0008.linux.rabobank.nl -p 10050 -k system.cpu.discovery
{"data":[{"{#CPU.NUMBER}":0,"{#CPU.STATUS}":"online"},{" {#C PU.NUMBER}":1,"{#CPU.STATUS}":"online"}]}
But if i test system.hw.cpu i get results for 4 (5th is indeed not present)...
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[0]
processor 0: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[1]
processor 1: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[2]
processor 2: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[3]
processor 3: GenuineIntel Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz working at 2700MHz
[zabbix@lsrv2289 ~]$ /etc/zabbix/zabbix_get -s server.name -p 10050 -k system.hw.cpu[4]
ZBX_NOTSUPPORTED: Cannot obtain CPU information.
Is it the agent version perhaps?
[Thu Feb 08 07:03:21 waarddd@lsrv0008:~ ] $ /usr/sbin/zabbix_agentd -V
zabbix_agentd (daemon) (Zabbix) 3.2.1
Revision 62890 30 September 2016, compilation time: Oct 3 2016 05:01:06
Comment