Ad Widget

Collapse

[Trigger]Make an estimation for HDD data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fangames
    Junior Member
    • Mar 2015
    • 2

    #1

    [Trigger]Make an estimation for HDD data

    Hello all,

    (Sorry if i have a wrong langage, i dislike google translate )
    I would like to make a new trigger in my Windows Template.

    In discovery mode, i have vfs.fs.size[{#FSNAME},free] available. Then i make a new item in calculated with this command :

    last("vfs.fs.size[{#FSNAME},free]") / (last("vfs.fs.size[{#FSNAME},free]",90d) - last("vfs.fs.size[{#FSNAME},free]"))

    But this command return "Error division by 0 impossible".

    I try only this command in my item for compare : last("vfs.fs.size[{#FSNAME},free]",90d)
    It return 13,512 GB

    I try this now : last("vfs.fs.size[{#FSNAME},free]")
    It return 13,512 GB.

    Now i understand the problem, last(90d) and last() return the same value.

    My question : How can i get the value for HDD State 90 days ago. (In my graphics i have ~28GB, and today 13,512GB)

    Thanks for your help. (I will try min() tomorrow but, if anyone have already make it or are better on Zabbix than me ^^)
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    I did not test it myself but you can try your trigger with last(,90d)


    And then in the calculated formula:
    last("vfs.fs.size[{#FSNAME},free]") / (last("vfs.fs.size[{#FSNAME},free]",,90d) - last("vfs.fs.size[{#FSNAME},free]"))

    Hope this helps!

    Best Regards,
    Ingus

    Comment

    • fangames
      Junior Member
      • Mar 2015
      • 2

      #3
      Just for acquaint

      Thanks you for your help, i have add this, and will edit this post monday for the result.

      (Since my 1st message, the min() return the min value on this period, then it's not what i want)

      best regards,
      Fangames

      Comment

      Working...