Ad Widget

Collapse

sum result OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mulbzh
    Senior Member
    • Nov 2014
    • 115

    #1

    sum result OID

    Hello,

    i create Template for my WLC Cisco.

    I have this OID to find numbers of users connected by wifi :

    root@ssgvzabbix:~# snmpwalk 10.3.125.200 -v2c -c public .1.3.6.1.4.1.14179.2.2.2.1.15
    iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.79.149.16 0.0 = Counter32: 10
    iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.79.149.16 0.1 = Counter32: 0
    iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.196.25.16 0.0 = Counter32: 1
    iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.196.25.16 0.1 = Counter32: 0
    iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.196.35.14 4.0 = Counter32: 0
    iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.196.35.14 4.1 = Counter32: 0
    iso.3.6.1.4.1.14179.2.2.2.1.15.84.74.0.201.110.176 .0 = Counter32: 0
    iso.3.6.1.4.1.14179.2.2.2.1.15.84.74.0.201.110.176 .1 = Counter32:

    How in zabbix Item i can do sum of snmp OID result ?

    i tried this : sum[.1.3.6.1.4.1.14179.2.2.2.1.15] but not better

    any idea ?
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    from the top of my head - only script can help you.
    I cannot remember any tricks which can help you to summarize the dynamic OID's.

    Create and external script which will use snmpwalk to collect all data from the branch, summarize it and send back to zabbix server only one number - The Amount of Users.
    Sincerely yours,
    Aleksey

    Comment

    • mulbzh
      Senior Member
      • Nov 2014
      • 115

      #3
      thanks for help

      this can help me ? http://zabbix.org/wiki/Advanced_SNMP_Discovery

      sorry i don t understand all my englis is bad

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        Yes, you can use that scripts as a starting point to create your own script.
        Because that scripts were created to discover all SNMP OID's and make as many Item's as you have OID's.

        For example, in your situation it will create OID's for each line in your snmpwalk request.
        Code:
        iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.79.149.16 0.0 = Counter32: 10
        iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.79.149.16 0.1 = Counter32: 0
        iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.196.25.16 0.0 = Counter32: 1
        iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.196.25.16 0.1 = Counter32: 0
        iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.196.35.14 4.0 = Counter32: 0
        iso.3.6.1.4.1.14179.2.2.2.1.15.0.225.109.196.35.14 4.1 = Counter32: 0
        iso.3.6.1.4.1.14179.2.2.2.1.15.84.74.0.201.110.176 .0 = Counter32: 0
        iso.3.6.1.4.1.14179.2.2.2.1.15.84.74.0.201.110.176 .1 = Counter32: 0
        and you will have 9 individual Items.

        But you need something else - only 1 item which will contain the summarized amount of users.

        Create your own script.
        Sincerely yours,
        Aleksey

        Comment

        Working...