Greetings!
I'm currently thinking of how to create generic linux template to collect CPU statistics via SNMP (zabbix agent features are not considered here!).
The problem is - I'd like to apply this template for servers with different number of CPUs.
I found SNMP counters, that counts individual CPU cores (threads) workload (::hrProcessorTable), and the set of cumulative counters with summarized statistics (::ssCpuSystem, ::ssCpuUser, ...).
I cannot figure out how to determine the number of CPUs as an SNMP coutner (or calculated derevative from other values). For sure I can just determine it visually. But it means I have to submit the constant for the template item which I will not be able to redefine for the particular server.
Calling "snmpwalk" from shell, counting the number of CPUs, in the resulting subtree and returning the result into zabbix seems too complex for this task...
Any typical solutions for this case?
The ideas are kindly appreciated!
I'm currently thinking of how to create generic linux template to collect CPU statistics via SNMP (zabbix agent features are not considered here!).
The problem is - I'd like to apply this template for servers with different number of CPUs.
I found SNMP counters, that counts individual CPU cores (threads) workload (::hrProcessorTable), and the set of cumulative counters with summarized statistics (::ssCpuSystem, ::ssCpuUser, ...).
I cannot figure out how to determine the number of CPUs as an SNMP coutner (or calculated derevative from other values). For sure I can just determine it visually. But it means I have to submit the constant for the template item which I will not be able to redefine for the particular server.
Calling "snmpwalk" from shell, counting the number of CPUs, in the resulting subtree and returning the result into zabbix seems too complex for this task...
Any typical solutions for this case?
The ideas are kindly appreciated!
Comment