Ad Widget

Collapse

How to use these SNMP items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dunehunter
    Junior Member
    • Jan 2024
    • 20

    #1

    How to use these SNMP items

    I use snmpwalk to get these items from server, snmpwalk -v3 -u sysadmin -l authPriv -a SHA -A 'Dm-12345678' -x DES -X 'Dm-12345678' 10.15.87.70 UCD-SNMP-MIB::systemStats

    UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 6
    UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 10
    UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 81
    UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 191700733
    UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 48344411
    UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 302797180
    UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 2231933466
    UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 2241616

    I wish to load these into grafana but I dunno where to start. As far as I know either ssCpuUser or ssCpuRawUser is used to present CPU Utilization, ssCpuRawWait is used to calculate Iowait, however all the Raw* data are instant monitored raw data that didn't count into core numbers.

    I also read from this article: https://www.zabbix.com/forum/zabbix-...-with-net-snmp
    That all these raw data cannot be directly used, must be multiple by some factors.

    So how I pre-calculate these Raw* items in zabbix to make them useful in grafana?
    Last edited by dunehunter; 13-05-2024, 10:35.
  • dunehunter
    Junior Member
    • Jan 2024
    • 20

    #2
    Could I use this template "Template Module Linux CPU SNMP"?
    Since I'm reading it's document here: https://git.zabbix.com/projects/ZBX/...=release%2F5.4
    As below:
    Click image for larger version

Name:	image.png
Views:	136
Size:	20.4 KB
ID:	483786
    My understand is that template items are embedded with scripts that preprocess the raw data "ssCpuRawUser" and put results into the system.cpu.user item right? If I use this template I could put this item into Grafana and expect it to be a correct data.
    Attached Files

    Comment

    Working...