Hello!
I have an SNMP-enabled switch with 24 ports, and I need zabbix to read the per-port traffic in bps and later on, sum up all the values it gets from the switch so that I can bill the clients I have plugged up to it, in the Datacenter.
I am already reading SNMP data correctly, but cannot use the grpsum function to add values up.
Here is my setup:
- Created a group called "switches" with only one Member (the switch host)
- Used this expression:
grpsum["Switches","port[1,in]","last","0"]
Note that port[1,in] is a key I made associated to the SNMP OID that reads inbound traffic for Port 1.
The result is that Zabbix does not add up all values, generating a number that ALWAYS increases (what I want) and instead is subtracting the values!!!
Example:
First value - 20
Second value - 1
Third value - 5
The correct result would be: 20 + 1 + 5 = 26
BUT ZABBIX returns this : 20 -1 - 5 = 15 !!!
How in the hell can this be possible?
Any help would be great.. Thanks in advance!1
Ivo Pereira
IT Consultant
Portugal
I have an SNMP-enabled switch with 24 ports, and I need zabbix to read the per-port traffic in bps and later on, sum up all the values it gets from the switch so that I can bill the clients I have plugged up to it, in the Datacenter.
I am already reading SNMP data correctly, but cannot use the grpsum function to add values up.
Here is my setup:
- Created a group called "switches" with only one Member (the switch host)
- Used this expression:
grpsum["Switches","port[1,in]","last","0"]
Note that port[1,in] is a key I made associated to the SNMP OID that reads inbound traffic for Port 1.
The result is that Zabbix does not add up all values, generating a number that ALWAYS increases (what I want) and instead is subtracting the values!!!
Example:
First value - 20
Second value - 1
Third value - 5
The correct result would be: 20 + 1 + 5 = 26
BUT ZABBIX returns this : 20 -1 - 5 = 15 !!!
How in the hell can this be possible?
Any help would be great.. Thanks in advance!1
Ivo Pereira
IT Consultant
Portugal
Comment