Ad Widget

Collapse

Trigger to check size differences between 2 files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Beef76
    Junior Member
    • Jun 2010
    • 4

    #1

    Trigger to check size differences between 2 files

    Hi all,
    i started to use zabbix one week ago so i'm new on it.

    I want to check size differences between two files.
    I mean ,i have backup files which are saved every day.

    And i want to check if the size of the file have brutally changed between the two saves ( more than 15%)

    So i created a trigger which check the size of file, but i can't find the way to make the trigger working as i want.

    I have an idea but i don't know if it's possible to do it.

    I want to do (last size check)-(previous size check)<( previous size check)*(15/100)

    But i don't know if it's good and if it's possible to do it.

    is someone can help me ?
  • Beef76
    Junior Member
    • Jun 2010
    • 4

    #2
    UP, please ...

    Comment

    • ruswold
      Senior Member
      • Mar 2010
      • 210

      #3
      Originally posted by Beef76
      Hi all,
      i started to use zabbix one week ago so i'm new on it.

      I want to check size differences between two files.
      I mean ,i have backup files which are saved every day.

      And i want to check if the size of the file have brutally changed between the two saves ( more than 15%)

      So i created a trigger which check the size of file, but i can't find the way to make the trigger working as i want.

      I have an idea but i don't know if it's possible to do it.

      I want to do (last size check)-(previous size check)<( previous size check)*(15/100)

      But i don't know if it's good and if it's possible to do it.

      is someone can help me ?

      Create calculated item
      (last size check)/(previous size check)-1
      and trigger if value item >0.15 and nodata(300)#1
      Last edited by ruswold; 10-06-2010, 11:53.

      Comment

      • Beef76
        Junior Member
        • Jun 2010
        • 4

        #4
        i 've got Zabbix 1.6.4 and there is no calculated item type for this version

        Comment

        • ruswold
          Senior Member
          • Mar 2010
          • 210

          #5
          Originally posted by Beef76
          Hi all,
          i started to use zabbix one week ago so i'm new on it.

          I want to check size differences between two files.
          I mean ,i have backup files which are saved every day.

          And i want to check if the size of the file have brutally changed between the two saves ( more than 15%)

          So i created a trigger which check the size of file, but i can't find the way to make the trigger working as i want.

          I have an idea but i don't know if it's possible to do it.

          I want to do (last size check)-(previous size check)<( previous size check)*(15/100)

          But i don't know if it's good and if it's possible to do it.

          is someone can help me ?
          It's one file in two state of size?
          You create one item sizecheck - size of file.
          When zabbix check this item (previous size check) = last(#2) and (last size check) = last(#1) (or last(0))
          Create trigger: {hostname:sizecheck.last(#1)}/{hostname:sizecheck.last(#2)} > 1,15 & {hostname:sizecheck.nodata(600)}#1 if you check once of day
          Last edited by ruswold; 10-06-2010, 15:18.

          Comment

          • Beef76
            Junior Member
            • Jun 2010
            • 4

            #6
            Thanks a lot, it works fine

            I just added a OR with {hostname:sizecheck.last(#1)}/{hostname:sizecheck.last(#2)} > 0.75

            But that was just i wanted to have

            Comment

            • ruswold
              Senior Member
              • Mar 2010
              • 210

              #7
              Originally posted by Beef76
              Thanks a lot, it works fine

              I just added a OR with {hostname:sizecheck.last(#1)}/{hostname:sizecheck.last(#2)} > 0.75

              But that was just i wanted to have
              ok, i'm glad to help

              Comment

              Working...