Ad Widget

Collapse

change() function doesn't work as expected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leonidimus
    Junior Member
    • May 2007
    • 12

    #1

    change() function doesn't work as expected

    G'day!
    In the manual it's written that change function "Returns difference between last and previous values". Unfortunately for me it's not like that due to unknown reason

    Here is the glitchy trigger (There is no space in "change" word below, it's the forum engine who adds it):
    Code:
    [B]Name[/B]	PSTN channels are lost [{HOSTNAME}::TS1]
    [B]Expession[/B] {jboss_cs_t:jmx_trunk_group_total_channels_ts1.change(0)}<0
    Here is the extract from "Latest data":
    ---------------------------------------
    somehost.company.com: Total channels on TS1
    Timestamp Value
    ... ... ...
    2007.Oct.04 07:45:16 392
    2007.Oct.04 07:40:18 368
    2007.Oct.04 07:37:11 392
    2007.Oct.04 07:35:15 392
    2007.Oct.04 07:31:18 392
    2007.Oct.04 07:30:13 368
    2007.Oct.04 07:27:19 368
    2007.Oct.04 07:25:19 392
    ---------------------------------------

    As you see, the difference between last(it's 368) and previous (392) was 368-392=-24 which is definitely < 0 But the trigger wasn't activated at the moments I marked red.

    So, did I make any mistake or it's a known problem?
    Thanks in advance!
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for reporting this. It is registered as ZBX-108. I will keep you informed about any progress here.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Fixed in the latest code. This problem existed for items of integer type only.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...