I just installed zabbix 1.4.1 and started to monitor 2 cisco switches. I wanted to know the rate of change for Discarded Input Octets on all my switch ports. Here's my item's configuration for port 101 :
Then I set a trigger on this item like this :
The problem is Zabbix don't take the calculated value (the rate) but instead it seem to take the raw value received by SNMP. So every interface that has at least one discarded frame (in the counters) will have this trigger set to true. I also tried the following trigger :
But then it seem to take the raw value as the last() value and the calculated value (rate) as the previous value. One way or the other I cannot get a trigger to work with the rate (B/s). Could you please confirm if this is a bug or if it was meant to be this way?
Thanks a lot
Code:
<item type="1" key="ifInDiscards_101" value_type="3">
<description>Interface 101 Input Discards</description>
<delay>60</delay>
<history>90</history>
<trends>90</trends>
<units>B / sec</units>
<delta>1</delta>
<formula>1</formula>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.2.2.1.13.101</snmp_oid>
<snmp_port>161</snmp_port>
</item>
Code:
<trigger>
<description>Discarded Input Octets On Interface 101 gt; 0 B/s</description>
<expression>{{HOSTNAME}:ifInDiscards_101.last(0)}gt;0</expression>
<priority>2</priority>
</trigger>
Code:
<trigger>
<description>Discarded Input Octets On Interface 101 gt; 0 B/s</description>
<expression>{{HOSTNAME}:ifInDiscards_101.change(0)}gt;0</expression>
<priority>2</priority>
</trigger>
Thanks a lot
Comment