Ad Widget

Collapse

Add GB Value to Free Disk Space Percentage Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • T-One
    Junior Member
    • Jan 2011
    • 12

    #1

    Add GB Value to Free Disk Space Percentage Trigger

    Hi,

    i use Free disk space Triggers of the Mounted filesystem discovery in the Windows Templates to monitor the free space of our servers.

    The Trigger looks like this:
    Code:
    {Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last(0)}<10
    Some of our servers have large disks and the 10 % are are most time over 20 GB of free disk space, so i dont want a 10 % warning if so many space is still free.

    Is it possible to couple this trigger with a the numeric value of free space in GB?

    It should look like this:
    If the free space is under 10 % but there are >10 GB free space left, don't mark the trigger as a problem.

    Just a push in the right direction would help me.

    thanks in advance

    T-One
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    This construction works for me
    Code:
    {Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last()}<20 &
     {Template OS Windows:vfs.fs.size[{#FSNAME},free].last()}<10737418240
    Sincerely yours,
    Aleksey

    Comment

    • T-One
      Junior Member
      • Jan 2011
      • 12

      #3
      oh it's that easy, thanks!

      Comment

      • big.LITTLE
        Junior Member
        • May 2016
        • 12

        #4
        Originally posted by aib
        This construction works for me
        Code:
        {Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last()}<20 &
         {Template OS Windows:vfs.fs.size[{#FSNAME},free].last()}<10737418240
        I'm wondering why I couldn't save the new trigger.

        It says: ‘Cannot add trigger prototype’
        • Incorrect trigger expression. Check expression part starting from " &
        • {Template OS Windows:vfs.fs.size[{#FSNAME},free].last()}<10737418240".


        Would anyone please help me out with this issue?

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          Because in new versions of Zabbix symbol '&' was replaced by word 'AND'
          So, the expression looks like
          Code:
          {Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last()}<20 [B]AND[/B]
           {Template OS Windows:vfs.fs.size[{#FSNAME},free].last()}<10737418240
          Sincerely yours,
          Aleksey

          Comment

          • big.LITTLE
            Junior Member
            • May 2016
            • 12

            #6
            Originally posted by aib
            Because in new versions of Zabbix symbol '&' was replaced by word 'AND'
            So, the expression looks like
            Code:
            {Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last()}<20 [B]AND[/B]
             {Template OS Windows:vfs.fs.size[{#FSNAME},free].last()}<10737418240
            Hi aib, thanks for replying.

            I tried with AND also not working:

            Incorrect trigger expression. Check expression part starting from " AND {Template OS Windows:vfs.fs.size[{#FSNAME},free].last()}<53687091200".

            Comment

            • big.LITTLE
              Junior Member
              • May 2016
              • 12

              #7
              *bumpiee..*

              Comment

              • big.LITTLE
                Junior Member
                • May 2016
                • 12

                #8
                hello.. (hello..) anyone here.. (anyone here..)
                echoo... (echoo...)

                Comment

                • DmitryL
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • May 2016
                  • 278

                  #9
                  Hello,

                  Try this one
                  Code:
                  {Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last()}<20 and
                   {Template OS Windows:vfs.fs.size[{#FSNAME},free].last()}<10737418240
                  Expression is case sensitive.

                  Comment

                  • big.LITTLE
                    Junior Member
                    • May 2016
                    • 12

                    #10
                    Originally posted by Dmitryb
                    Hello,

                    Try this one
                    Code:
                    {Template OS Windows:vfs.fs.size[{#FSNAME},pfree].last()}<20 and
                     {Template OS Windows:vfs.fs.size[{#FSNAME},free].last()}<10737418240
                    Expression is case sensitive.
                    You're right, expression is case sensitive, never crossed my mind about this one.

                    Thanks a bunch!

                    Comment

                    Working...