Ad Widget

Collapse

Stacking Triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wokwon
    Junior Member
    • Jul 2009
    • 9

    #1

    Stacking Triggers

    I have inherited a Zabbix system from a staffmember and have been instructed to simplify the screens in the following way. I am still learning how to use the system so please excuse me if I use the wrong terminology.

    We have screens that show servers and the triggers for low disk space (e.g. for C, D, E and F drive).

    I have been asked to make a single square (trigger) that shows if any one or more of the CDEF drives have low disk space. I tried to do this by creating a trigger with all four triggers (one for each drive) and an ampersand (&) between them but the square is grey and never updates.

    Please advise if I am approaching this in the right way.

    We are running Zabbix 1.6.5.
  • tighep
    Senior Member
    • Dec 2007
    • 124

    #2
    The & symbol is the and operator, so I don't think that will work as desired. Can you post your trigger syntax?

    Comment

    • xibbaz
      Member
      Zabbix Certified Specialist
      • Jun 2009
      • 74

      #3
      I guess you could simply take each of your trigger definitions and put them all in one single trigger separeted with the OR operator (which is "|" probably).

      Comment

      • Wokwon
        Junior Member
        • Jul 2009
        • 9

        #4
        Thats what I was trying to do but I just got a grey box instead of a red or green box.

        The original trigger was:
        Code:
        {ARM_Template_Windows_2003:vfs.fs.size[c:,free].last(0)}<10000
        What I tried was:
        Code:
        {ARM_Template_Windows_2003:vfs.fs.size[c:,free].last(0)}<10000 |
        {ARM_Template_Windows_2003:vfs.fs.size[d:,free].last(0)}<10000 | 
        {ARM_Template_Windows_2003:vfs.fs.size[e:,free].last(0)}<10000 | 
        {ARM_Template_Windows_2003:vfs.fs.size[f:,free].last(0)}<10000
        It gets more complicated as I also need to handle servers thay may only have a C and D drive, or may be a CDROM so I ended up with:
        Code:
        {ARM_Template_Windows_2003:vfs.fs.size[c:,free].last(0)}<10000 &
        {ARM_Template_Windows_2003:vfs.fs.size[c:,free].last(0)}>1
        for each trigger.

        Xibbas, you are right that I should have used OR instead of AND.

        I changed it to OR (|) and still get grey boxes.
        Last edited by Wokwon; 23-07-2009, 00:51. Reason: Typo

        Comment

        • Wokwon
          Junior Member
          • Jul 2009
          • 9

          #5
          I have added parentheses but still grey boxes:

          Code:
          ({ARM_Template_Windows_2003:vfs.fs.size[c:,free].last(0)}<10000)| 
          ({ARM_Template_Windows_2003:vfs.fs.size[d:,free].last(0)}<10000)| 
          ({ARM_Template_Windows_2003:vfs.fs.size[e:,free].last(0)}<10000)|
          ({ARM_Template_Windows_2003:vfs.fs.size[f:,free].last(0)}<10000)

          Comment

          • tighep
            Senior Member
            • Dec 2007
            • 124

            #6
            I just did a quick test on one of my development systems, here's that syntax

            {host1:vfs.fs.size[/,pused]. last( 0 ) }>90|{host1:vfs.fs.size[/usr,pused]. last( 0 ) }>20

            Obviously I wanted this to trip, and it does as expected. Since you mentioned a grey box, I'm wondering if the items are actively getting data.

            Comment

            • Wokwon
              Junior Member
              • Jul 2009
              • 9

              #7
              Hi Tighep. Thankyou for your suggestion.

              I figured out that the OR'ing of C D E F drives works fine. The reason the boxes were grey was that none of my hosts had all four CDEF drives. There were random combinations of CDE CDF CD etc.

              Can you think of any way to handle combinations of drives in a template so that I can have a single trigger for any drive at >90% capacity?

              We are trying to simplify the trigger screen so it can show more information on a large flat screen mounted on the wall and just want a 'disk status' icon rather than a C-status, D-status etc.

              Comment

              Working...