Ad Widget

Collapse

Substraction on triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riffe
    Junior Member
    • May 2006
    • 18

    #1

    Substraction on triggers

    Hi, may I ask what is the correct trigger expression for two items like Disk total size and Disk space used. (to trigger if less than 1GB)

    I'm using this expression:

    ({server1:drvCTotal.last(0)}-{server1:drvCUsed.last(0)})<1G


    The error is:

    Incorrect trigger expression '(0-0)<1G'

    Hopin' anyone can help. TIA!
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Please, try either

    ({server1:drvCTotal.last(0)})-({server1:drvCUsed.last(0)})<1G

    or

    {server1:drvCTotal.last(0)}-{server1:drvCUsed.last(0)}<1G

    I believe it should work.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • riffe
      Junior Member
      • May 2006
      • 18

      #3
      Hi Alexei, both of them don't work and still the same error.

      Comment

      • riffe
        Junior Member
        • May 2006
        • 18

        #4
        hi guys, any idea on this. tnx

        Comment

        • eric.butler
          Junior Member
          • Apr 2006
          • 4

          #5
          Workaround

          I had the same problem. What I did was use a plus just to get the frontend to accept the trigger, then go into the database and edit the + to be a -.

          I believe there was a post a while back about this bug in the regular expression checking code for the triggers, but I don't know if this issue is related.

          Comment

          Working...