Ad Widget

Collapse

SNMP CPU monitoring - how to create a template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amish1975
    Junior Member
    • Jul 2013
    • 14

    #1

    SNMP CPU monitoring - how to create a template

    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!
    Last edited by amish1975; 31-07-2013, 08:05.
  • amish1975
    Junior Member
    • Jul 2013
    • 14

    #2
    Currently resolving this by calculated items based on macro {$THREADS_COUNT} configured for each individual host. But this is quite cumbersome and not obvious...

    This topic is directly related with:


    Having the demanded functionality available there would be a chance to calculate number of host's CPUs directly from SNMP...

    Comment

    Working...