Ad Widget

Collapse

calculate trigger with two items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jpawlowski
    Member
    • May 2005
    • 45

    #1

    calculate trigger with two items

    hi,

    i'd like this trigger to work together with templates:

    {Tpl.Printer_HP:toner_curfill3.last(0)}/{Tpl.Printer_HP:toner_maxfill3.last(0)}<0.2

    Unfortunately only the first expression will be updated to the final hostname when I add the template to a host, the second is not. if i change the second expression on the host manually it works fine.

    i think this is some kind of bug so I report it here :-)
    Last edited by jpawlowski; 26-05-2005, 00:42.
  • skendall
    Junior Member
    • Jul 2005
    • 5

    #2
    I have a few triggers on a template that check multiple items. When that template is assigned to a host, I get the same problem. It seems that the check on the last item is updated with the correct hostname, but any previous checks keep the template name.

    Comment

    • mconigliaro
      Senior Member
      • Jun 2005
      • 116

      #3
      i believe this is a known bug. only the first expression is evaluated.

      Comment

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

        #4
        I'm aware of this issue. It is already fixed and next alpha will be released very soon.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • clawson
          Junior Member
          • Aug 2005
          • 5

          #5
          trigger with two values fixed?

          I am trying to do something similar to what is described here and I am still having problems.

          I recently changed from 1.1 alpha 11 to 1.1 alpha 12 hoping that this problem would be resolved. (So is the fix in alpha 12 or in some future alpha?)

          Here's the trigger that I want to execute:

          Description: Disk space less than 50% on host's volume /
          Expression: ({host:diskused[/].last(0)}/{host:disktotal[/].last(0)})<0.50

          From the zabbix_server log, I get the following error:
          012373:20050908:174802 Evaluation of expression [(15943812096.000000/{11277})<0.50] failed
          012373:20050908:174802 Expression [({11276}/{11277})<0.50] cannot be evaluated.


          Can anyone help here?

          Thanks,
          Dan

          Comment

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

            #6
            I believe this is because disktotal is refreshed once per 30 or 60 minutes. Drink tea, eat cookies and the trigger will start working.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            Working...