Ad Widget

Collapse

Sum of 2 snmp values do not understand

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JamesZabbix
    Junior Member
    • Aug 2017
    • 1

    #1

    Sum of 2 snmp values do not understand

    Ok so I have spent hours on this and I just don't understand.

    I have created 2 items based on snmp requests:

    Inbytes:
    interfaces.ifTable.ifEntry.ifInOctets.6

    Outbytes:
    interfaces.ifTable.ifEntry.ifOutOctets.6

    They work just fine individually.

    So now all I want to do is create a 3rd item and add these two values together

    TotalBytes:

    interfaces.ifTable.ifEntry.ifInOctets.6+interfaces .ifTable.ifEntry.ifOutOctets.6


    This does not work, I've tried formulas with last() in multiple different, I just can't get it to work, the documentation doesn't help, it only references calculations using zabbix agent values, there are 0 examples of snmp calculations.

    Could someone please help me figure out the correct syntax, I'm tearing my hair out here.


    And to whoever writes the zabbix doc, you really need to include snmp examples in the calculation pages and in general, because it's really really lacking.
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hi JamesZabbix,

    first thing you need to make sure that you are using Calculated type of an item.

    Check how mine is configured:

    Check this: http://imgur.com/WVZiH0z

    The key is: last("snmp.ifoutoctets.2")+last("snmp.ifinoctets.2 ")

    Regards,
    Alex!

    Comment

    Working...